Typecho - UEditor编辑器(1.4.3版本)插件

插件开发及发布

版主: woniou

回复
头像
jy625
帖子: 2
注册时间: 2014年 6月 12日 09:57
联系:

Typecho - UEditor编辑器(1.4.3版本)插件

帖子 jy625 »

分享一个百度UEditor编辑器(1.4.3版本)适用typecho 0.9的插件,主要是自己使用,安装和功能比较简单。
图片

安装步骤:
1.解压UEditor.rar后上传UEditor文件夹到网站/usr/plugins/目录下。
2.]给/usr/目录添加读写权限(-777),上传附件会在此目录下建立ueditor文件夹用于保存。
3.typecho后台---控制台---个人设置---关闭使用 Markdown 语法编辑和解析内容功能。
4.typecho后台---控制台---插件---开启UEditor插件。

百度网盘:http://pan.baidu.com/s/1mgwUTk8

编辑器菜单修改说明:
如果需要简化菜单除去不用的功能,可以在文件/usr/plugins/UEditor/ueditor/ueditor.config.js中进行配置,对应编辑器注释对应控件标签即可,如图:
图片

有关插件的使用演示,可直接进入此传送门查看:http://www.jyboke.com/typecho/42.html,欢迎大家交流。
上次由 jy625 在 2014年 6月 25日 11:18,总共编辑 1 次。
头像
zyzzc
帖子: 648
注册时间: 2009年 9月 25日 20:11
联系:

Re: Typecho - UEditor编辑器(1.4.3版本)插件

帖子 zyzzc »

还不错 之前有人做过1.3.6版本的 这编辑器按钮真不少
孤独小坏
帖子: 5
注册时间: 2014年 3月 1日 12:19

Re: Typecho - UEditor编辑器(1.4.3版本)插件

帖子 孤独小坏 »

附件点击不能插入解决

代码: 全选

public static function render($post)  

内添加代码

代码: 全选

   echo '<script type="text/javascript">
      ue1.ready(function(){
         //附件插入
          Typecho.insertFileToEditor = function (file, url, isImage) {
             html = isImage ? "<img src=" + url + "  alt=" + file + "/>": "<a href=" + url + ">" + file + "</a>";
              ue1.setContent(html, true);
          };
      })
   </script>';
孤独小坏
帖子: 5
注册时间: 2014年 3月 1日 12:19

Re: Typecho - UEditor编辑器(1.4.3版本)插件

帖子 孤独小坏 »

附件点击不能插入解决

代码: 全选

public static function render($post)  

内添加代码

代码: 全选

   echo '<script type="text/javascript">
      ue1.ready(function(){
         //附件插入
          Typecho.insertFileToEditor = function (file, url, isImage) {
             html = isImage ? "<img src=" + url + "  alt=" + file + "/>": "<a href=" + url + ">" + file + "</a>";
              ue1.setContent(html, true);
          };
      })
   </script>';
回复