suncky/yii-ueditor

Yii2 extension widget

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2016-11-16 16:39 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:20:43 UTC


README

该扩展基于Yii2.0, Choate\ueditor-ext编写而成

安装

配置config文件路径

首先配置UEditor的配置文件

return [
    'components' => [
        'assetManager' => [
            'assetMap' => [
                'ueditor.config.js' => '@web/js/ueditor.config.js', // 具体的存放路径参照项目定义
            ],
        ],
    ],
];

使用

$form = ActiveForm::begin();
echo $form->field($model, 'content')->widget(['class' => UEditor::className(), 'ueditorAction' => '后端请求,包括上传等']);
$form->end();