2017 © Pedro Peláez
 

yii2-extension yii2-ueditor

yii2 ueditor extend

image

zacksleo/yii2-ueditor

yii2 ueditor extend

  • Saturday, September 16, 2017
  • by zacksleo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 250 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii2 135编辑/秀米编辑器器扩展

Latest Stable Version Total Downloads License, (*1)

Travis Build Status Code Climate Scrutinizer Scrutinizer Coverage, (*2)

该插件根据135编辑器企业插件秀米编辑器Ueditor插件封装而来, (*3)

用法

1. 在 config/main 中配置 module 为:

 'ueditor' => [
     'class' => 'zacksleo\yii2\ueditor\Module'
 ]

2. 在页面中使用

加载135编辑器插件:, (*4)

``` use zacksleo\yii2\ueditor\assets\Editor135Asset; Editor135Asset::register($this);, (*5)

$this->registerJsFile('/admin/ueditor/i25/script',[ 'depends'=>[ 'kucha\ueditor\UeditorAsset' ] ]);, (*6)

echo \kucha\ueditor\UEditor::widget([ 'name' => 'ueditor', 'clientOptions' => [ //编辑区域大小 'initialFrameHeight' => '200', //设置语言 'lang' => 'zh-cn', //中文为 zh-cn 'zIndex' => '9995', //定制菜单 'toolbars' => [ [ 'fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|', '135editor' ], ] ] ]);, (*7)

```, (*8)

加载秀米编辑器插件:, (*9)

``` use zacksleo\yii2\ueditor\assets\EditorXiumiAsset; EditorXiumiAsset::register($this);, (*10)

$this->registerJsFile('/admin/ueditor/xiumi/script',[ 'depends'=>[ 'kucha\ueditor\UeditorAsset' ] ]);, (*11)

echo \kucha\ueditor\UEditor::widget([ 'name' => 'ueditor', 'clientOptions' => [ //编辑区域大小 'initialFrameHeight' => '200', //设置语言 'lang' => 'zh-cn', //中文为 zh-cn 'zIndex' => '9995', //定制菜单 'toolbars' => [ [ 'fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|', '135editor' ], ] ] ]);, (*12)

```, (*13)

3. 更多关于 \kucha\ueditor\UEditor 的用法见文档

The Versions

16/09 2017

dev-master

9999999-dev

yii2 ueditor extend

  Sources   Download

MIT

The Requires

 

The Development Requires

23/02 2017

v1.0.0

1.0.0.0

yii2 ueditor extend

  Sources   Download

MIT

The Requires