rob006/yii-tinymce
Composer 安装命令:
composer require rob006/yii-tinymce
包简介
TinyMCE editor integration for Yii 1.1.
README 文档
README
Yii 1.1 extension that provides basic integration with TinyMce editor.
Based on https://github.com/zxbodya/yii-tinymce.
Installation
The preferred way to install this extension is through composer.
Either run
composer require rob006/yii-tinymce
or add
"rob006/yii2-tinymce": "^3.0"
to the require section of your composer.json file.
Usage
Basic usage:
<?php $this->widget('TinyMceWidget', [ 'model' => $model, 'attribute' => 'value', ]) ?>
Usage with custom settings and Yiistrap and elFinder extensions integration.
<?= $form->textAreaControlGroup($model, 'value', ['rows' => 6, 'span' => 8,]) ?> <?php $this->widget('TinyMceWidget', [ 'model' => $model, 'attribute' => 'value', 'dry_run' => true, 'fileManager' => [ 'class' => 'TinyMceElFinder', 'popupConnectorRoute' => 'pageAssetsPopup', 'popupTitle' => 'Files', ], 'settings' => [ 'content_css' => $this->getEditorStyles(), ], ]) ?>
Resources
统计信息
- 总下载量: 13.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-04