你需要注意添加FCKeditor插件

你需要注意添加FCKeditor插件
所以在WC的时候,我决定转换编辑器。但我通常做着以前我做。它经常工作得很好。我发现FCKeditor支持插件。许多插件可以在制作之后简单地使用,但在这方面,很少使用插件数据(也许我太笨了)。我会给你一个插件包。如何使用我尝试了几个插件,找到了相应的方法,这其实很简单。

1。把插在相应的插件目录 / / /编辑器FCKeditor插件 / 。

2、打开 / / fckconfig FCKeditor。JS 和fckconfig找到的部分。一个工具集{默认=。您可以选择一个位置来添加插件,并且工具位置也可以任意调整。
复制代码代码如下所示:
fckconfig.toolbarlocation =;

FCKConfig。一个工具集{ { } =默认
{源, / * * / 'docprops 'bbcode ','保存',','newpage,'preview,'templates}—,,
{切,'copy ','paste ','pastetext ','pasteword ','print ','spellcheck},
{歌唱家,'redo'、‘',替换',-,-,'selectall ','removeformat},
{‘形','checkbox,收音机,'textfield ','textarea ','select '按钮','imagebutton ','hiddenfield},

{ 'bold ','italic ','underline ','strikethrough ','subscript ','superscript},
{ 'orderedlist ','unorderedlist ','outdent ','indent,'blockquote ','creatediv},
{ 'justifyleft ','justifycenter ','justifyright ','justifyfull},
{ 'link ','unlink '锚' },
{图像,'flash ','remoteupload ','insertplayer ','kmp ','youtube ','insertcode,}},法治,'smiley ','specialchar ','pagebreak},

{ 'style ','fontformat ','fontname ','fontsize},
{ 'textcolor ','bgcolor},
{ 'fitwindow ','showblocks、' },因为最后一排的逗号。 /否
};

三.找到fckconfig.pluginspath = fckconfig.basepath + 'plugins /;你可以添加相应的插件下面,看是否有如何添加插件多语言版本,下面的2种方法。但是很多关注点是:必须区分大小写,插件定义必须一致。因为我跨域的一些插件,也需要设置文件。
复制代码代码如下所示:
fckconfig.pluginspath = fckconfig.basepath + 'plugins ;
FCKConfig.Plugins.Add('remoteupload,*,zh CN);
FCKConfig.Plugins.Add('insertplayer);
FCKConfig.Plugins.Add('kmp);
FCKConfig.Plugins.Add('youtube,*,zh CN);
FCKConfig.Plugins.Add('insertcode);
的…

4。有些插件(如insertcode,那就是当我们写博客的插入代码),不相关的CSS样式在后台编辑后,看不到效果(本文代码只在一个文本框),然后你可以立即看到效果,我们可以找到fckconfig.editorareacss = fckconfig.basepath + 'css / fck_editorarea CSS的。

我想简单地用微博忘记,我不能写下来,我想写博客,让别人觉得我很愚蠢。嘿,在那之后,这个部门很好,迷你博客写下了这个想法。这就是实现这个想法的过程。

tag:插件需要注意电脑软件FCKeditor

相关内容