Yii 2.0: tinymce-for-yii2

An extension for Yii Framework 2.0
2 followers

Yii2-tinymce is extention for Yii Framework 2.0

Renders a TinyMCE WYSIWYG text editor plugin widget.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "letyii/yii2-tinymce" "dev-master"

or add

"letyii/yii2-tinymce": "dev-master"

to the require section of your application's composer.json file.

Usage Example

$model = Article::findOne(1);
echo $form->field($model, 'content')->widget(letyii\tinymce\Tinymce::className(), [
    'options' => [
        'id' => 'testid',
    ],
    'configs' => [ // Read more: http://www.tinymce.com/wiki.php/Configuration
        'link_list' => [
            [
                'title' => 'My page 1',
                'value' => 'http://www.tinymce.com',
            ],
            [
                'title' => 'My page 2',
                'value' => 'http://www.tinymce.com',
            ],
        ],
    ],
]);

Download

https://github.com/letyii/yii2-tinymce

Total 1 comment

#17672 report it
ThePr0f3550r at 2014/07/14 12:24am
Great Extension

Great Extension

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet