从word复制/粘贴到html [英] copy/paste from word to html

查看:362
本文介绍了从word复制/粘贴到html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



当我将.docx文档中的一些文本复制/粘贴到Notepad ++时,我无法相信我正在挣扎将近2个小时。很多人物都不见了,我得到'?'(问号)。我试图从.docx复制文本到记事本,当我想保存该文件时,它说


该文件包含字符如果将此文件另存为ANSI编码的文本文件,则Unicode格式将丢失。要保留Unicode信息,请单击下面的取消,然后从编码下拉列表中选择一个Unicode选项。


然后,我我试图将它保存为Unicode,并将该新的.txt文件复制到我的html编辑器(Notepad ++),但仍然存在问题!



奇怪的是,这个问题只会在该.docx文件中出现几个段落。



如何解决这个问题?

解决方案

请尝试以下方法:


  1. 直接输入编辑器本身。

  2. 首先粘贴到记事本中,取消选择您的文本,重新选择它,然后将其粘贴到编辑器中(将它放入记事本中将首先删除除文本之外的所有内容,因此您可能必须重新格式化您的列表,粗体,斜体等)

  3. 使用编辑器工具栏中的从Word粘贴图标而不是 Ctrl + V (或 Cmd + V 在Mac上),但请注意,这并不总是会删除所有标记。 使用在线Word> Clean HTML转换器,如 http://word2cleanhtml.com

资料来源:从Word复制/粘贴到编辑器



或者参考:从Word粘贴 p>

希望这有助于。


I' can't believe that i'm struggling almost 2 hours with this absurdity:

when I copy/paste some text from my .docx document to Notepad++ a lot of characters are missing and I get '?' (question marks). I've tried to copy that text from .docx to Notepad and when I want to save that file it says

This file contains characters in Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, click Cancel below and then select one of the Unicode options from the Encoding drop down list.

Then, I've tried to save it as Unicode and to copy from that new .txt file to my html editor (Notepad++), but freakin problem remains!

It's strange that this problem happens only with few paragraphs in that .docx file. Remaining part of text is copying just fine.

How to fix this?

解决方案

Please Give it a try below ways:

  1. Type directly into the editor itself.
  2. Paste into Notepad first, deselect your text, re-select it, then paste it into the editor (putting it into Notepad first strips out everything but text, so you’ll probably have to reformat your lists, bold, italics, etc.).
  3. Use the "Paste From Word" icon in your editor toolbar instead of Ctrl+V (or Cmd+V on Mac), but be aware that this doesn’t always erase all the markup.
  4. Use an online Word -> Clean HTML converter like http://word2cleanhtml.com.

Source: Copy/Paste From Word to Editor

Or Refer: Paste From Word

Hope this helps.

这篇关于从word复制/粘贴到html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆