yii2 ueditor extend
该插件根据135编辑器企业插件 和秀米编辑器Ueditor插件封装而来, (*3)
'ueditor' => [ 'class' => 'zacksleo\yii2\ueditor\Module' ]
加载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)