editor是由百度web前端研发部开发的所见即所得富文本web编辑器,开源基于BSD协议。
Clone the repo, git clone [email protected]:windsdeng/ueditor-for-yii.git
, or download the latest release.
把ueditor插件放到 extensions/ 在相应的Html(View) 调用
<?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/",
',
));
?>
Have a bug? Please create an issue here on GitHub! Also, when filing please make sure you're familiar with necolas's guidelines. thanks! <3
https://github.com/windsdeng/ueditor-for-yii/issues
http://www.ueditorbbs.com/forum.php?mod=forumdisplay&fid=2
http://ueditor.baidu.com/website/onlinedemo.html
http://ueditor.baidu.com/website/helper.html