nyx-solutions/yii2-nyx-tinymce
Composer 安装命令:
composer require nyx-solutions/yii2-nyx-tinymce
包简介
Yii2 TinyMCE Widget
README 文档
README
Renders a TinyMCE WYSIWYG text editor plugin widget. Inspired by PendalF89/yii2-tinymce extension.
Installation
The preferred way to install this extension is through composer.
- Either run
php composer.phar require --prefer-dist "nyx-solutions/yii2-nyx-tinymce" "*"
or add
"nyx-solutions/yii2-nyx-tinymce": "*"
to the require section of your application's composer.json file.
Usage
In the view files you can use:
<?= $form->field($model, 'text')->widget( \nyx\widgets\tinymce\TinyMce::className(), [ 'clientOptions' => [ 'language' => 'pt_BR', 'plugins' => [ "advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks code fullscreen", "insertdatetime media table contextmenu paste" ], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image" ] ] ); ?>
License
yii2-nyx-tinymce is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-06-01