tinymce / tinymce-vue

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

toolbar is shown even when toolbar configuration is false #376

Open Naama-Le opened 1 year ago

Naama-Le commented 1 year ago

What is the current behavior? I'm using tinymce-vue to edit text in inline mode. I'm using a computed property to set the init configuration, where I change the toolbar value conditionally. I can see in the inspector that the editor updates the toolbar value (to false => to hide the toolbar), but the toolbar is still there on screen.

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar. my computed value: editorConfig(){ const toolbar = this.editTextBox ? false : 'undo redo | bold italic underline strikethrough | alignleft aligncenter alignright'; return { selector: 'span', toolbar: toolbar, menubar: false } }, What is the expected behavior? the toolbar should be hidden on toolbar: false

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

Screenshot 2023-04-12 at 13 21 21

Screenshot 2023-04-12 at 13 23 03

TinyITAdmin commented 1 year ago

Ref: INT-3174