tinymce-angular icon indicating copy to clipboard operation
tinymce-angular copied to clipboard

Have to refresh the page to get a second instance of TinyMCE to work

Open jimbeeer opened this issue 3 years ago • 2 comments

What is the current behavior? I'm currently writing a CMS using TinyMCE, I go through the pages using routerLink. When I go to edit one page the editor works fine. When I go to edit a second page it hasn't destroyed the instance of the first one so it doesn't work. If I refresh the page then it works fine. If I use hrefs to navigate around, it works fine.

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.

What is the expected behavior? For the editor to work every time, or auto destroy itself on exit of the page. Is there a way to get it to destroy itself either within onInit or within onDestroy? I can't find any documentation anywhere supporting this.

Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular? TinyMCE 5 for Angular. I don't know about previous versions.

jimbeeer avatar Aug 26 '21 09:08 jimbeeer

Ref: INT-2639

exalate-issue-sync[bot] avatar Aug 26 '21 09:08 exalate-issue-sync[bot]

I have same problem

yangjunfocus avatar Dec 16 '21 02:12 yangjunfocus

Please try to send replication cases when submitting bugs otherwise is really hard to look into them. I'm closing this until a replication is provided

jscasca avatar Oct 27 '22 04:10 jscasca