tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.01k stars 202 forks source link

Setting the initial height of TinyMCE does not work. #356

Open randolf-alegre opened 1 year ago

randolf-alegre commented 1 year ago

What is the current behavior? When setting the initial height of the TinyMCE editor in vuejs 2 it does not apply because of the .tox-tinymce which has a value of height: 500px !important;.

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar. .tox-tinymce { border-radius: 0.675rem !important; height: 500px !important; }

What is the expected behavior? The expected behavior based on the docs is it should change and follow the value that is set in the init attribute.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-vue?

Version 3 and up using tinyMCE-vue Browser: Chrome

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3088

fyzhu commented 1 year ago

put height in init property

image
lorenzo-pomili commented 1 year ago

Using the height in init as @fyzhu suggested I got the correct behavior too, if that does not fix your problem could you please provide us an example via codepen or similar that has the problem?