yii-tinymce /

Filename Size Date modified Message
47 B
Added tag 1.0.0 for changeset ff46758d8f63
7.2 KB
upgrade to 3.5.10
9.9 KB
fix bug in compressor action
434 B
Separate repository for extension
4.9 KB
Separate repository for extension
416 B
composer integration
1.5 KB

TinyMCE integration for yii

  1. Checkout source code to ext.tinymce
  2. To use spellchecker and compressor, create controller and add corresponding actions to it

    class TinyMceController extends CController
        public function actions()
            return array(
                'compressor' => array(
                    'class' => 'TinyMceCompressorAction',
                    'settings' => array(
                        'compress' => true,
                        'disk_cache' => true,
                'spellchecker' => array(
                    'class' => 'TinyMceSpellcheckerAction',
  3. 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',
        'htmlOptions' => array(
            'rows' => 6,
            'cols' => 60,
  4. More about elFinder extension here: https://bitbucket.org/z_bodya/yii-elfinder

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.