开发者

How can I retain Word document formatting when pasting into a web form?

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 cen开发者_开发知识库tering) is lost. Is there any way to do so without losing the formatting?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜