javascript - TinyMCE - Pasting from word - Stack Overflow

admin2025-04-20  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.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745158736a288012.html

最新回复(0)