A5下载程序插件

分类分类

FCK编辑器增强插件 forDedeCMS5.3 / 5.5

FCK编辑器增强插件 forDedeCMS5.3 / 5.5

大小:12 KB更新:2010/09/08

类别:dedecms插件系统:Linux/2003/PHP

立即下载

以下为FCK功能增强插件的正文:

# FCK编辑器增强插件 for DedeCMS V5.3.1 / V5.5
#
# 整合:小迷糊
还是只需3步,不修改dede任何程序文件,绿色环保。

功能方面请参看上边的演示地址。虽然编辑器不同,但功能是一样的

主要功能:

1、自动排版,将编辑器内的内容自动排版,段落自动居左,图片自动居中,清除多余空行,可定制段前是否空格。
2、图片排版,将编辑器中的图片自动居中,免去每张单独设置的烦恼。
3、简繁转换,可在编辑器中直接进行简繁转换,一键操作,方便快捷。
4、自动排版后,代码里只保留段落标签<p></p>,粗体标签<strong></strong>,(<b></b>会被自动替换成<strong></strong>),垃圾代码自动过滤,保证了代码的整洁。

使用方法:
1、请下载附件中的压缩包,并把文件夹解压到 /include 目录下
2、打开后台文章模板  /dede/templets/article_add.htm  

添加如下代码
 

Copy code
<script type="text/java script" src="../include/editor_plus/plus_format_fck.js"></script>



 

Copy code

   并找到代码,这段的作用是载入编辑器
   <?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="java script:insertHTMLToEditor('body', '#p#副标题#e#');" />



3、打开后台文章模板               /dede/templets/article_edit.htm

添加如下代码
 

Copy code
<script type="text/java script" src="../include/editor_plus/plus_format_fck.js"></script>



 

Copy code

   并找到代码,这段的作用是载入编辑器
   <?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="java script:insertHTMLToEditor('body', '#p#副标题#e#');" />

 

精品推荐
开发者应用
同类推荐
      相关文章
      相关下载
      说两句网友评论
        我要跟贴
        取消
        推荐专题