sandritsch91/yii2-froala-editor
最新稳定版本:1.1.2
Composer 安装命令:
composer require sandritsch91/yii2-froala-editor
包简介
Yii2 Froala Editor widget extended from froala/yii2-froala-editor
README 文档
README
Extension for froala/yii2-froala-editor
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist sandritsch91/yii2-froala-editor
or add
"sandritsch91/yii2-froala-editor": "*"
to the require section of your composer.json
Default configuration
This widget extends the original FroalaEditor Widget. This had to be done to be able to configure the FroalaEditor in the Yii2 way. I also added a few default options, you can overwrite them in the configuration of the application, or in the configuration of the widget.
Product key
You can set the product key in the (local) configuration of the application:
'container' => [ 'definitions' => [ 'sandritsch91\yii2\froala\FroalaEditor' => [ 'defaultClientOptions' => [ 'key' => 'YOUR_PRODUCT_KEY', ] ] ] ]
Plugins
The original FroalaEditor adds the plugins dynamically, which makes it impossible to configure them in the Yii2 way. They are all loaded by default, but you can disable them in the configuration of the widget:
<?= FroalaEditor::widget([ 'clientPlugins' => [ ... ], 'excludedPlugins' => [ ... ], ]); ?>
统计信息
- 总下载量: 577
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-09-05