粘贴到 Web 表单时如何保留 Word 文档格式?

发布于 2024-10-06 15:23:41 字数 92 浏览 0 评论 0原文

将 Word .doc 或 .rtf 字母粘贴到 Web 表单(例如文本区域)时,大部分文档格式(如粗体或居中)都会丢失。有什么办法可以在不丢失格式的情况下做到这一点吗?

When pasting a Word .doc or .rtf letter into a web form e.g into a textarea most of the document formatting (like bold or centering) is lost. Is there any way to do so without losing the formatting?

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

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

发布评论

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

评论(1

但可醉心 2024-10-13 15:23:41

只要您使用纯文本区域就不会:textarea 元素仅用于携带未格式化的文本。
如果您需要格式化文本,您可以尝试提供此类的 JavaScript 框架。

AFAIK,Dojo 有一个可以包含格式化文本的编辑器小部件。

Not as long as you're using plain text areas: the textarea element is intended to carry only unformatted text.
If you need formatted text, you could try a javascript framework providing such.

AFAIK, Dojo has an editor widget that could contain formatted text.

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