三、打开后台文章模板 /dede/templets/article_edit.htmjavascript
添加以下代码 <script type="text/javascript" src="../include/editor_plus/plus_format_fck.js"></script>
并找到代码,这段的做用是载入编辑器
<?php GetEditor("body",$addRow['body'],450); ?>
在这段代码下方加入以下代码
<input type="button" id="buttonj2f" onClick="jian2fan('body')" value="简->繁">php
购物导航 http://www.ganshuw.com
购物分享 http://www.jielala.com/
<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')">
还有一种比较简单的方法就是换一个编辑插件 推荐一个好的编辑插件,很好用,教程比较简单java
KindEditor 是一套开源的在线HTML编辑器,主要用于让用户在网站上得到所见即所得编辑效果,开发人员能够用 KindEditor 把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。 KindEditor 使用 JavaScript 编写,能够无缝地与 Java、.NET、PHP、ASP 等程序集成,比较适合在 CMS、商城、论坛、博客、Wiki、电子邮件等互联网应用上使用。浏览器