2017 © Pedro Peláez
 

yii2-extension yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

image

zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

  • Monday, June 25, 2018
  • by zxbodya
  • Repository
  • 2 Watchers
  • 13 Stars
  • 6,820 Installations
  • PHP
  • 5 Dependents
  • 1 Suggesters
  • 7 Forks
  • 3 Open issues
  • 4 Versions
  • 9 % Grown

The README.md

TinyMCE integration for Yii2

Yii2 extension to simplify tinymce wyiwyg editor usage in your application., (*1)

Extension is based on Yii 1.1 version: https://github.com/zxbodya/yii-tinymce, (*2)

Provides:, (*3)

  • widget
  • compressor action
  • stub for integration with file managers like elFinder

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist zxbodya/yii2-tinymce "*@dev", (*6)

or add, (*7)

"zxbodya/yii2-tinymce": "*@dev", (*8)

to the require section of your composer.json file., (*9)

Usage

Widget basic usage

$form->field($model, 'content')->widget(TinyMce::className())

Scripts Compressor Action

This can be used to optimize widget loading time., (*10)

At fist setup compressor action:, (*11)

public function actions()
{
    return [
        'tinyMceCompressor' => [
            'class' => TinyMceCompressorAction::className(),
        ],
    ];
}

Next add route to configured action to widget ooptions:, (*12)

$form->field($model, 'content')->widget(
    TinyMce::className(),
    ['compressorRoute' => 'test/tinyMceCompressor']
)

ElFinder Fille manager

At fisrt install zxbodya/yii2-elfinder extesion., (*13)

https://github.com/zxbodya/yii2-elfinder, (*14)

And configure connector action for it., (*15)

Next add file manager settings to widget:, (*16)

$form->field($model, 'content')->widget(
    TinyMce::className(),
    [
        'fileManager' => [
            'class' => TinyMceElFinder::className(),
            'connectorRoute' => 'el-finder/connector',
        ],
    ]
)

Spellchecker

TinyMce has bundled plugin for spellchecking but it requires backed to work..., (*17)

You can use yandex spellchecker service., (*18)

$form->field($model, 'content')->widget(
    TinyMce::className(),
    ['spellcheckerUrl'=>'http://speller.yandex.net/services/tinyspell']
)

More info about it here:, (*19)

http://api.yandex.ru/speller/doc/dg/tasks/how-to-spellcheck-tinymce.xml, (*20)

Or you can build own spellcheking service using code provided by moxicode: http://www.tinymce.com/download/download.php, (*21)

The Versions

25/06 2018

dev-master

9999999-dev

Yii2 extension to use TinyMce with Compressor and FileManager

  Sources   Download

MIT

The Requires

 

by Bogdan Savluk

extension yii2 tinymce wysiwyg

29/11 2015

v2.0.0

2.0.0.0

Yii2 extension to use TinyMce with Compressor and FileManager

  Sources   Download

MIT

The Requires

 

by Bogdan Savluk

extension yii2 tinymce wysiwyg

20/03 2014

dev-yii-1.1-tinymce-4x

dev-yii-1.1-tinymce-4x

Extension to use TinyMce with Compressor, SpellChecker and FileManager

  Sources   Download

BSD-3-Clause

by Bogdan Savluk

tinymce wysiwyg

16/11 2013

dev-yii-1.1-tinymce-3x

dev-yii-1.1-tinymce-3x

Extension to use TinyMce with Compressor, SpellChecker and FileManager

  Sources   Download

BSD-3-Clause

by Bogdan Savluk

tinymce wysiwyg