首先,这个插件是用在fckeditor上,必须遵循这个步奏:
1、在讲dedecms5.6utf8版本下的fckeditor 上床到5.7版本的 include下。
2、将附件的js文件上传到include/fckeditor 上,注意:插件必须是utf-8格式的。。
3、编辑后台模板
3.1编辑/dede/templates/acticle_add.htm
添加引入代码:
<script type="text/javascript" src="../include/FCKeditor/plus_format_fck.js"></script>
在引入fckeditor代码下面添加
<?php
GetEditor("body",$body,450);
?>
<input type="button" id="buttonj2f" onClick="jian2fan('body')" value="简->繁">
<input type="button" name="formatbutton" value="自动排版" onClick="FormatText('body')"><input id="ifblank" name="ifblank" type="checkbox"><label for="ifblank" style='font-size:12px;'>段前空格?</label>
<input type="button" name="formatbutton_img" value="图片排版" onClick="FormatImages('body')">
<input type="button" name="button" value="插入分页标签" onclick="javascript:insertHTMLToEditor('body', '#p#副标题#e#');" />
添加引入代码:
<script type="text/javascript" src="../include/FCKeditor/plus_format_fck.js"></script>
在引入fckeditor代码下面添加
<?php GetEditor("body",$addRow['body'],450); ?>
<input type="button" id="buttonj2f" onClick="jian2fan('body')" value="简->繁">
<input type="button" name="formatbutton" value="自动排版" onClick="FormatText('body')"><input id="ifblank" name="ifblank" type="checkbox"><label for="ifblank" style='font-size:12px;'>段前空格?</label>
<input type="button" name="formatbutton_img" value="图片排版" onClick="FormatImages('body')">
<input type="button" name="button" value="插入分页标签" onclick="javascript:insertHTMLToEditor('body', '#p#副标题#e#');" />
4、在“系统”-“系统基本参数”-“核心设置” 下面把 “Html编辑器”的值 改为 “fck”,这样即可。