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

  1. 最新版本 UEditor1.2.5.0
  2. Requirements
  3. Usage
  4. ueditor1.2.2.0
  5. ueditor1.1.7
  6. Resources

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

3 5
5 followers
3 509 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: winds
Created on: Nov 14, 2011
Last updated: 11 years ago

Downloads

show all

Related Extensions