AnApprentice
AnApprentice

Reputation: 110940

TinyMCE remove DIVs when pasting in the editor - how?

TinyMCE - when you copy and paste in TinyMCE the past is wrapped around DIV tags. Anyone know how to disable that? I don't see the need for DIV tags, so I'm not sure why TINYMCE adds them? And there is no mention in the docs.

Thanks

http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste

Upvotes: 2

Views: 2124

Answers (1)

Thariama
Thariama

Reputation: 50832

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

Are you talking about additional divs inside paragraphs? 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.

Upvotes: 1

Related Questions