吴伟贤のBlog

Feed Rss

asp 使用FCKeditor

10.31.2007, asp, by .

新建一个index.asp页面

<%
Dim oFCKeditor
 Set oFCKeditor = New FCKeditor
 oFCKeditor.BasePath = "/FCKeditor/"  //设置编辑器的路径,我站点根目录下的一个目录
 oFCKeditor.ToolbarSet = "Default"
 oFCKeditor.Width = "100%"
 oFCKeditor.Height = "600"

 oFCKeditor.Value = "" //这个是给编辑器初始值
 oFCKeditor.Create "logbody" //以后编辑器里的内容都是由这个logbody取得,命名由你定

 %>

加了这一段别忘了在index.asp前面加上

<!–#include file="FCKeditor/fckeditor.asp" –>

把fckeditor.asp包含进来。切记切记!

只要把这个编辑器当成一个控件来使用,

提取数据时用:request("logbody")

里面有些设置,去网上找些高级的使用说明来看吧。
 

评论已关闭。