TinyMCE - 从 Word 粘贴

发布于 2024-07-09 19:04:15 字数 232 浏览 7 评论 0原文

我正在尝试配置 TinyMCE,以便它接受来自 Microsoft Word 的粘贴并在预期的 HTML 层次结构中清理它。

我们的大多数编辑人员使用单换行符表示换行符,使用双回车符表示段落。 然而,MS Word 的输出将下一行放在一个单独的段落中(除非您按 Shift 键输入回车符),并将一个带有不间断空格的空白段落用于两个回车符。 有什么方法可以净化这个输入吗? 我尝试过使用这些插件,但找不到任何神奇的组合。

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 combo.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落在眉间の轻吻 2024-07-16 19:04:15

我已经成功使用这个插件

I've had success with this plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文