很强大的在线文本编辑软件。先在已经用CKeditor 和CKfinder 联合取代了。上网做了点研究看看如何继承到自己的web中。
首先在页面中引用【asp 模式】
<!-- #INCLUDE virtual="FckEditor/fckeditor.asp" –> 引用文件
在form中插入引用
<%
Dim sBasePath
sBasePath = "FckEditor/"Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath
oFCKeditor.Value = "<p>This is some <strong>sample text</strong>. You are using <a href=""http://www.fckeditor.net/"">FCKeditor</a>."
oFCKeditor.Create "FCKeditor1"%>
oFCKeditor.Value 这里是现实在文本框在的文字内容。
上面的这个引用是使用的默认toolbar。FCKeditor的默认toolbar是比较多的,可以在fckconfig.js中进行编辑。
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] // No comma for the last row.
] ;
在上面根据情况自己删减吧。
在FCKeditor.asp中对文本框的大小进行修改。
Private Sub Class_Initialize()
sBasePath = "/fckeditor/"
sWidth = "100%"
sHeight = "200"
sToolbarSet = "Default"
sValue = ""
记得上面的stoolbarset 已经设置成 默认了“Default”
上面基本简单的使用FCKeditor 了