FCKeditor(2.6)自定义工具栏 FCKeditor2.6.4配置文件fckconfig.j(2)
4
['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],5
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],6
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],7
['Link','Unlink','Anchor'],8
['TextColor','BGColor'],'/'9
['Cut','Copy','Paste','PasteText','PasteWord'],10
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],11
['FitWindow','ShowBlocks','-','Source','About'] // No comma for the last row.12
] ;
然后再调用代码中做如下更改
注意第7行是新增的,指定所要使用的工具栏
<%2
Dim oFCKeditor3
Set oFCKeditor = New FCKeditor4
oFCKeditor.BasePath = "edit/"5
oFCKeditor.Value = ""6
oFCKeditor.Config("SkinPath")="/website/manage/edit/editor/skins/silver/"7
oFCKeditor.ToolbarSet = "Custom"8
oFCKeditor.Create "txtcontent"9
%>10
其定制语法很简单
[] 表示一个工具条,
[] 中的短横线'-'表示一个垂直分割线
'' 两个单引号中间加一个标识符表示一个工具栏按钮,具体的对应关系可以自己找。
'/' 作用类似于一个回车。使该符号后面的工具栏新起一行排列。
我最终的定制效果如下:
顶(0)
踩(0)
- 最新评论
