Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tiny MCE4 ignores width

Tags:

tinymce-4

I replaced a tinymce 3 with tinymce 4. Tinymce 4 takes all the width available :

   tinyMCE.init({ mode: 'textareas',
    theme: 'modern',
    width:"808",
    height : "480"

    });

It ignores the width settings. I use it on a rails admin plugin where i cannot change the surrounding HTML. WHat has change in tinymce 4 that can explain this behavior?

i found that : http://fiddle.tinymce.com/jvdaab/1 i cannot reduce width, if someone can it would be great.

like image 998
Syl Avatar asked May 03 '26 19:05

Syl


1 Answers

You have to remove the quotes :

width: 300,
height : 480

like this : http://fiddle.tinymce.com/Nzdaab

Wrong :

width: "100",
height : "480"
like image 131
Sébastien Gicquel Avatar answered May 07 '26 09:05

Sébastien Gicquel