不但可以向本文一樣顯示程式碼,並且高亮顯示。
1、在配置檔案中找到下面的程式碼:
JavaScript程式碼
XML/HTML程式碼
FCKConfig.ToolbarSets[Default]=[
["Source","FontName","FontSize"],
["TextColor","BGColor"],
["Image","Media","Flash","Table","Smiley","SpecialChar"],
["ShowBlocks","Preview","FitWindow"],
"/",
["PasteText","Templates","Find","RemoveFormat"],
["Undo","Redo"],
["-","Bold","Italic","Underline","StrikeThrough"],
["OrderedList","UnorderedList","-","Outdent","Indent","Blockquote"],
["JustifyLeft","JustifyCenter","JustifyRight"],
["Link","Unlink","Rule"],
["Subscript","Superscript","-","InsertCode"]//Nocommaforthelastrow.];看到了麼?最後一句的區別。
2、查詢:FCKConfig.PluginsPath = FCKConfig.BasePath + "plugins/";
在下面加上:
FCKConfig.Plugins.Add("insertcodeRun");
二、開啟fckeditor\editor\lang資料夾裡的zh-cn.js,在結尾的 };之前 加入以下程式碼
InsertCodeBtn : 插入程式碼
注意:加入上面程式碼時,原來的最未句程式碼後面要加個逗號.
不但可以向本文一樣顯示程式碼,並且高亮顯示。
1、在配置檔案中找到下面的程式碼:
JavaScript程式碼
XML/HTML程式碼
FCKConfig.ToolbarSets[Default]=[
["Source","FontName","FontSize"],
["TextColor","BGColor"],
["Image","Media","Flash","Table","Smiley","SpecialChar"],
["ShowBlocks","Preview","FitWindow"],
"/",
["PasteText","Templates","Find","RemoveFormat"],
["Undo","Redo"],
["-","Bold","Italic","Underline","StrikeThrough"],
["OrderedList","UnorderedList","-","Outdent","Indent","Blockquote"],
["JustifyLeft","JustifyCenter","JustifyRight"],
["Link","Unlink","Rule"],
["Subscript","Superscript","-","InsertCode"]//Nocommaforthelastrow.];看到了麼?最後一句的區別。
2、查詢:FCKConfig.PluginsPath = FCKConfig.BasePath + "plugins/";
在下面加上:
FCKConfig.Plugins.Add("insertcodeRun");
二、開啟fckeditor\editor\lang資料夾裡的zh-cn.js,在結尾的 };之前 加入以下程式碼
InsertCodeBtn : 插入程式碼
注意:加入上面程式碼時,原來的最未句程式碼後面要加個逗號.