Skip to content
Discussion options

You must be logged in to vote

Edit: For now I guess I don't even need to call editor.destroy(), I just call this:

Well, you're leaking memory if you don't destroy it first.

this conditionally rendering the dom is a default behavior of our panel component... to circumvent this would be little wacky

I'd recommend finding a way to prevent unmounting the DOM if it's not necessary and remounting the editor just to show the preview sounds quite unnecessary. It doesn't even sound like a big challenge, especially in Vuejs which offers that for free with v-show.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giordanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants