最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - TinyMCE - Pasting from word - Stack Overflow

programmeradmin2浏览0评论

I'm trying to configure TinyMCE so that it accepts pasting from Microsoft Word and cleans it up in an expected HTML hierarchy.

Most of our editorial staff use a single line break to denote a line break and a double return to indicate a paragraph. However, MS Word's output puts the next line in a separate paragraph (unless you shift-enter for a carriage return) and a blank paragraph with non-breaking space for two returns. Is there any way to sanitize this input? I've tried playing around with the plugins but can't find any magic bo.

I'm trying to configure TinyMCE so that it accepts pasting from Microsoft Word and cleans it up in an expected HTML hierarchy.

Most of our editorial staff use a single line break to denote a line break and a double return to indicate a paragraph. However, MS Word's output puts the next line in a separate paragraph (unless you shift-enter for a carriage return) and a blank paragraph with non-breaking space for two returns. Is there any way to sanitize this input? I've tried playing around with the plugins but can't find any magic bo.

Share Improve this question edited Dec 8, 2008 at 20:42 Pim Jager 32.1k17 gold badges74 silver badges99 bronze badges asked Dec 8, 2008 at 20:28 user37731user37731 5,6571 gold badge18 silver badges8 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

I've had success with this plugin.

发布评论

评论列表(0)

  1. 暂无评论