I have 2 (or more) <textarea> initialized by TinyMCE-3.4.8-jQuery in <ul> .
<ul id="content"> <li id="bc1"><textarea id="text1" class="blockcontent"></textarea></li> <li id="bc2"><textarea id="text2" class="blockcontent"></textarea></li> <li id="bc3"><textarea id="text3" class="blockcontent"></textarea></li> </ul>
The "block content" will be initialized with $('.blockcontent').tinymce({...}); .
If I enter # bc3 after # bc1 with $('#bc3').insertAfter($('#bc1')); , the content will be deleted. The contents of text box # text3 are no longer available. It has disappeared. How to fix it?
I also tried to clone # bc3 $('#bc3').clone(true, true) , insert the clone after # bc1 and delete the original # bc3. To fix jQuery Input Clone Bug error, I used jquery.fix.clone jQuery plugin . But the clone method also has the same problem as the insertAfter method. Perhaps insertAfter does the same: clone and delete. I donβt know anything. If I delete the original first and then insert the clone, TinyMCE will not be available in the clone, but the contents of the cloned text area will be available. If I first insert the clone and then delete the original, accessible by TinyMCE, but not the original content.
Vg
source share