开发者

TinyMCE remove DIVs when pasting in the editor - how?

开发者 https://www.devze.com 2023-01-28 12:59 出处:网络
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, s开发者_开发技巧o I\'m not sure why TINYMCE adds

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, s开发者_开发技巧o 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号