2amigos / yii2-tinymce-widget

TinyMCE WYSIWYG widget for Yii2
http://yiiwheels.com
Other
100 stars 48 forks source link

apply custom skin #21

Closed philbluefox closed 7 years ago

philbluefox commented 8 years ago

How can I apply my custom skin? How can I add it to assets?

insane-dev commented 8 years ago

Hi, maybe it is too late, but nevertheless...

To change editor skin you need to specify where the new skin is stored, e.g.:


$form->field($model, 'content')->widget(TinyMce::className(), [
    'clientOptions' => [
        // ...
        'theme' => 'modern',
        'skin' => 'light',
        // this will look for skin e.g. in 
        // `yii2-app-advanced/backend/web/css/tinymce/skins/light` dir
        'skin_url' => '/css/tinymce/skins/light', 
        // ...
    ],
]);

See TinyMCE docs about skin_url.

tonydspaniard commented 7 years ago

thanks @insane-dev