rob006 / yii-tinymce
TinyMCE editor integration for Yii 1.1.
Installs: 10 410
Dependents: 1
Suggesters: 1
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 1
Type:yii-extension
Requires
- php: >=5.4.0
- tinymce/tinymce: ^6.8.2
- yiisoft/yii: ~1.1.18
Suggests
- rob006/yii-elfinder2: Provides file manager integration with editor.
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": "^2.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(), ], ]) ?>