-
Checkout source code to ext.tinymce
-
To use spellchecker and compressor, create controller and add corresponding actions to it
Yii::import('ext.tinymce.*'); class TinyMceController extends CController { public function actions() { return array( 'compressor' => array( 'class' => 'TinyMceCompressorAction', 'settings' => array( 'compress' => true, 'disk_cache' => true, ) ), 'spellchecker' => array( 'class' => 'TinyMceSpellcheckerAction', ), ); } }
-
Use it as any other input widget:
$this->widget('ext.tinymce.TinyMce', array( 'model' => $model, 'attribute' => 'tinyMceArea', // Optional config 'compressorRoute' => 'tinyMce/compressor', 'spellcheckerRoute' => 'tinyMce/spellchecker', 'fileManager' => array( 'class' => 'ext.elFinder.TinyMceElFinder', 'connectorRoute'=>'admin/elfinder/connector', ), 'htmlOptions' => array( 'rows' => 6, 'cols' => 60, ), ));
-
More about elFinder extension here: https://bitbucket.org/z_bodya/yii-elfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
zxbodya/yii-tinymce
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published