I am adding textareas and removing textareas (with tinymces assigned to them) by removing the very dom elements creating them.
What I had not appreciated was that there is some tiny mce object with the original mapping code to textareas and regardless of if you remove the element, the object still exists and ends up posting incorrect data through post data.
My question is in 2 parts:
- How are you suppose to properly remove a tinymce editor?
- I re-shuffle textarea names and ids so that I always have post data starting from 0 and going up... How in this case, do I re-shuffle the tinymce objects so that they are addressing the correct tinymce object?
I have looked for about 3 hours now and managed to remove tinyMCE.editors... but then I need to re-shuffle the references the other editors have.