简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM