dev-master
9999999-devYii2 extension to use TinyMce with Compressor and FileManager
MIT
The Requires
by Quinn Nguyen
extension yii2 tinymce wysiwyg
Yii2 extension to use TinyMce with Compressor and FileManager
Yii2 extension to simplify tinymce wyiwyg editor usage in your application., (*1)
Provides:, (*2)
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require --prefer-dist vanquybn/yii2-tinymce "*@dev"
, (*5)
or add, (*6)
"vanquybn/yii2-tinymce": "*@dev"
, (*7)
to the require section of your composer.json
file., (*8)
$form->field($model, 'content')->widget(TinyMce::className())
This can be used to optimize widget loading time., (*9)
At fist setup compressor action:, (*10)
public function actions() { return [ 'tinyMceCompressor' => [ 'class' => TinyMceCompressorAction::className(), ], ]; }
Next add route to configured action to widget ooptions:, (*11)
$form->field($model, 'content')->widget( TinyMce::className(), ['compressorRoute' => 'test/tinyMceCompressor'] )
At fisrt install vanquybn/yii2-elfinder
extesion., (*12)
https://github.com/vanquybn/yii2-elfinder, (*13)
And configure connector action for it., (*14)
Next add file manager settings to widget:, (*15)
$form->field($model, 'content')->widget( TinyMce::className(), [ 'fileManager' => [ 'class' => TinyMceElFinder::className(), 'connectorRoute' => 'el-finder/connector', ], ] )
TinyMce has bundled plugin for spellchecking but it requires backed to work..., (*16)
You can use yandex spellchecker service., (*17)
$form->field($model, 'content')->widget( TinyMce::className(), ['spellcheckerUrl'=>'http://speller.yandex.net/services/tinyspell'] )
More info about it here:, (*18)
http://api.yandex.ru/speller/doc/dg/tasks/how-to-spellcheck-tinymce.xml, (*19)
Or you can build own spellcheking service using code provided by moxicode: http://www.tinymce.com/download/download.php, (*20)
Yii2 extension to use TinyMce with Compressor and FileManager
MIT
extension yii2 tinymce wysiwyg