TinyMCE remove DIVs when pasting in the editor - how?

Usually, all textual content is wraped inside paragraphs - not divs.

In that case you might be able to use paste_preprocess to cut it off yourself. A second option could be to use the paste_postprocess option to remove it.

If you load an instance of TinyMCE, type stuff, then copy it and paste it inside of TinyMCE, the entire paste is wrapped inside a DIV. That's what I'm trying to prevent from happening. Thoughts?

– AnApprentice Nov 29 '10 at 17:57 hmm, I am not able to reproduce the behavior you describe, can you please post your full tinymce configuration and explicitly show how pasted text gets wrapped (eachstep described, output of firebufg would be helpfull) – Thariama Nov 30 '10 at 8:10 I'm actually having the exact same problem ... and just realized this was a year ago not a few days ago. Going to play with the paste_postprocess however. But the OP is correct: When selecting the entire contents of a TinyMCE editor, and pasting it into a new TinyMCE editor you find the entirety wrapped with an extra div which maps to the ID you have put on the editor.

Really annoying. – Erik Dec 3 at 2:01 in that case someone should file a bugreport at www.tinymce.com – Thariama Dec 5 at 11:24.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions