You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you surround the <tinymce> block in a <div> with a v-if condition.
The first time the v-if evaluates to "true" everything works, but the second time it no longer renders the TinyMCE editor. Instead it just leaves it as a "textarea".
I have got around this by using v-show instead.
Another issue arises if you try to re-order or re-structure the object(s) above the TinyMCE editor.
In my example I have an array of objects in VueJS. Each of these objects has a TinyMCE editor attached to it.
If I re-download the objects via AJAX then it breaks the editor so that it no longer has content and is read-only.
I have a similar issue with this. I have it within a v-if as well. When the v-if is false on the first render, it works well. If it becomes true, it works fine and shows the tinymce field. If it goes back to false, the tinymce isn't disposed of. Therefore if the condition becomes true again, you get a second tinymce feild... This can happen an infinite amount of times, creating a new tinymce every time the condition is true...
If you surround the
<tinymce>
block in a<div>
with a v-if condition.The first time the v-if evaluates to "true" everything works, but the second time it no longer renders the TinyMCE editor. Instead it just leaves it as a "textarea".
I have got around this by using v-show instead.
Another issue arises if you try to re-order or re-structure the object(s) above the TinyMCE editor.
In my example I have an array of objects in VueJS. Each of these objects has a TinyMCE editor attached to it.
If I re-download the objects via AJAX then it breaks the editor so that it no longer has content and is read-only.
The text was updated successfully, but these errors were encountered: