evocms-community / pagebuilder

Page Builder for Evolution CMS
29 stars 23 forks source link

TinyMCE mini #96

Closed fourroses666 closed 3 years ago

fourroses666 commented 3 years ago

What file does PageBuilder use for richtext mini?

I'd like to change it but can't find the theme. /assets/plugins/tinymce4/theme/ Would expect to use: theme.tinymce4.mini.inc.php but it doesn't.

    'type'    => 'richtext',
    'theme'   => 'mini',
    'options' => [
        'height' => '80px',
        ],
mnoskov commented 3 years ago

https://github.com/evolution-cms/evolution/blob/1.4.x/assets/plugins/tinymce4/theme/theme.tinymce4.mini.inc.php

fourroses666 commented 3 years ago

Yes, its not using the that config. I have looked at TinyMCE settings and Configuration > Interface > TinyMCE4 > Theme settings etc. I use the latest PB from Extras.

mini pb
fourroses666 commented 3 years ago

I will use this, can't get it modified. 'type' => 'richtext', (no theme) 'options' => [ 'height' => '100px',

fourroses666 commented 3 years ago

Don't know if there was a fix but it seems to works now, I made a copy of ../tinymce4/theme/theme.tinymce4.mini.inc.php and did some changes.

In pagebuilder config I call it by:

'richtext' => [
                'caption' => 'Text',
                'type'    => 'richtext',
        'default' => '',
                'theme'   => 'mini2',
                'options' => [
                    'height' => '200px',
                ],
            ],