使用FCKeditor作文本编辑器

    技术2022-05-20  51

    前后效果图对比:

    图1

    1.

     

    图2

    1. 在FCKeditor的官方网站:http://www.fckeditor.net/download

    下载FCKeditor.Net_2.6.4.zip,FCKeditor_2.6.6.zip(当前最新版)2. 解压FCKeditor_2.6.6.zip,将fckeditor目录放到网站根目录下;

    解压FCKeditor.Net_2.6.4.zip,提取FCKeditor.Net_2.6.4/bin/Release/2.0中的FredCK.FCKeditorV2.dll,放到网站新建的目录bin下。

    3. 添加引用,导入工具箱:在“工具箱”下右键——>“选择项”——>浏览,找到FredCK.FCKeditorV2.dll,工具箱即可多出FCKeditor控件。

    4. 控件上按钮太多,只需要简单的几个,怎么办呢?

    记事本打开fckeditor/fckconfig.js:修改FCKConfig.ToolbarSets["Default"]。[],表示换行;‘-’表示分隔


    最新回复(0)