Yii 1.1: ueditor-for-yii

Ueditor是由百度web前端研发部开发的所见即所得富文本web编辑器,开源基于BSD协议。
6 followers

http://www.ueditorbbs.com/template/qing/image/logo.png

...overview of the extension...

由于旧版本封装到很多人不会用,因此我重新封装最新版本的UEditor1.2.5.0 欢迎大家下载使用

最新版本 UEditor1.2.5.0

WDueditor for UEditor1.2.5.0

Requirements

...requirements of using this extension (e.g. Yii 1.1 or above)...

Usage

...how to use this extension...

code.google下载

github下载

把ueditor插件放到 extensions/

在Html 调用

ueditor1.2.2.0

<?php
    $this->widget('ext.ueditor.Ueditor',
            array(
                'getId'=>'Post_content',
                'UEDITOR_HOME_URL'=>"/",
                'options'=>'toolbars:[["fontfamily","fontsize","forecolor","bold","italic","strikethrough","|",
"insertunorderedlist","insertorderedlist","blockquote","|",
"link","unlink","highlightcode","|","undo","redo","source"]],
                    wordCount:false,
                    elementPathEnabled:false,
                    imagePath:"/attachment/ueditor/",
                    ',
            ));
?>

options

options里面的代码直接按百度原来一样(包括所有的参数)。如上


ueditor1.1.7

<?php
    $this->widget('ext.ueditor.Ueditor',
            array(
                'getId'=>'Article_content',
                'textarea'=>"Article[content]",
                'imagePath'=>'/attachment/ueditor/',
                'UEDITOR_HOME_URL'=>'/',
            ));
?>

订制Toolbars 方法

<?php
    $this->widget('ext.ueditor.Ueditor',
            array(
                'getId'=>'Settings_about',
                'minFrameHeight'=>180,
                'textarea'=>"Article[content]",
                'imagePath'=>'/attachment/ueditor/',
                'UEDITOR_HOME_URL'=>'/',
                'toolbars'=>"'Undo','Redo','ForeColor','BackColor', 'Bold','Italic','Underline','JustifyLeft','JustifyCenter','JustifyRight','InsertImage','ImageNone','ImageLeft','ImageRight','ImageCenter',",
            ));
?>

Resources

Total 5 comments

#5927 report it
sensorario at 2011/11/25 07:13pm
good & bad

Good extension. Bad translation.

#5856 report it
winds at 2011/11/20 08:35pm
Reply #5851

I released extension, there was no upload attachments (attachment is larger than I 2M, so there is no time to upload). No download links, and friends gave negative feedback. In fact, this extension is really good!

#5855 report it
winds at 2011/11/20 08:32pm
Please consider a translation.

因为我发布 extension 时,还没有上传附件(因为我附件大过2M,所以有一些时间没有上传)。没有下载链接,朋友们就给了差评。其实这个 extension 真的不错!

#5851 report it
jacmoe at 2011/11/20 02:43pm
I want to vote up, but..

I really want to be able to vote this up, but I don't read Chinese. That's definitely the reason why you've got two thumbs up and three thumbs down. Please consider a translation.

#5793 report it
winds at 2011/11/14 02:51am
下载地址在GOOGLE

http://code.google.com/p/ueditor-for-yii/downloads/detail?name=ueditor-for-yii-1.1.7.2.zip&can=2&q=

Leave a comment

Please to leave your comment.

Create extension
Downloads