.docx导入excel_如何在WordPress中导入.docx文档

.docx导入excel

Do you like writing in Microsoft Word instead of WordPress? Want to import the .docx document in WordPress instead of copying / pasting which usually messes up the formatting? In this article, we will show you how to import .docx documents in WordPress.

您是否喜欢用Microsoft Word而不是WordPress编写? 是否要在WordPress中导入.docx文档,而不是通常会造成格式混乱的复制/粘贴? 在本文中,我们将向您展示如何在WordPress中导入.docx文档。

Docx to WordPress
为什么以及何时需要在WordPress中正确导入.docx文件? (Why and When You Need to Properly Import .docx Files in WordPress?)

Some users prefer to write their articles in Microsoft Word, which comes with a built-in spell check, thesaurus, templates, styles and formatting. The default WordPress visual editor does not offer all these features.

一些用户更喜欢用Microsoft Word撰写文章,该文章带有内置的拼写检查,同义词库,模板,样式和格式。 默认的WordPress 可视编辑器不提供所有这些功能。

Another possible usage scenario is guest blogging. If you do not want to give guest authors access to your WordPress admin area, then they often send their guest posts either in plain HTML or a .docx document.

另一个可能的使用情况是访客博客。 如果您不想让访客作者访问您的WordPress 管理区域 ,那么他们通常会以纯HTML或.docx文档的形式发送访客帖子。

Lastly, you may already have some content saved in .docx documents. Copying and pasting from docx can be difficult, specially if you have to copy content from multiple documents.

最后,您可能已经在.docx文档中保存了一些内容。 从docx复制和粘贴可能很困难,尤其是如果您必须从多个文档复制内容时。

Having said that, let’s see how you can properly import .docx documents in WordPress without breaking formatting.

话虽如此,让我们看看如何在不破坏格式的情况下在WordPress中正确导入.docx文档。

在WordPress中导入.docx文档 (Importing .docx Documents in WordPress)

First thing you need to do is install and activate the Mammoth .docx converter plugin. For more details, see our step by step guide on how to install a WordPress plugin.

您需要做的第一件事是安装并激活Mammoth .docx转换器插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。

Upon activation, you need to create a new post or edit an existing one. On the post edit screen, you will find the Mammoth .docx converter metabox below the post editor.

激活后,您需要创建一个新帖子或编辑现有帖子。 在帖子编辑屏幕上,您将在帖子编辑器下方找到Mammoth .docx转换器元框。

Mammoth docx converter in WordPress

Simply click on the choose file button to select a .docx file from your computer.

只需单击“选择文件”按钮,即可从您的计算机中选择一个.docx文件。

As soon as you select the .docx file, the plugin will show you three views for the documents. In the Visual tab, you will see how the document will look in WordPress.

选择.docx文件后,该插件将为您显示文档的三个视图。 在“视觉”选项卡中,您将看到该文档在WordPress中的外观。

Preview converted document

You will notice that it will ignore any styles applied to your .docx documents such as text color, background color, padding, margin, etc. Instead, it will let your theme’s stylesheet control how to display those things.

您会注意到,它将忽略应用于.docx文档的任何样式,例如文本颜色,背景颜色,填充,边距等。相反,它将让您主题的样式表控制如何显示这些内容。

You can also view the HTML generated by the converter by clicking on the Raw HTML button. You can click on the messages button to see if there were any warnings or errors during conversion.

您还可以通过单击“原始HTML”按钮来查看转换器生成HTML。 您可以单击消息按钮以查看转换过程中是否存在任何警告或错误。

If you are satisfied with how the document looks in the visual tab, then you can click on the ‘Insert into editor’ button. The plugin will insert converted HTML into your WordPress post editor.

如果您对可视化选项卡中的文档外观感到满意,则可以单击“插入编辑器”按钮。 该插件会将转换后HTML插入WordPress帖子编辑器。

You can continue to work on the post. If you are new to WordPress, then you may want to see our guide on how to add a new post in WordPress and utilize all the features.

您可以继续处理该帖子。 如果您不熟悉WordPress,则可能需要查看我们的指南,了解如何在WordPress中添加新帖子并利用所有功能。

Mammoth .docx converter plugin converts a .docx file into a clean HTML format compatible with WordPress. Currently, the plugin supports the following features:

猛mm象.docx转换器插件可将.docx文件转换为与WordPress兼容的纯HTML格式。 当前,该插件支持以下功能:

  • Headings like Heading 1, Heading 2, are converted into h1,h2, etc.

    诸如标题1,标题2之类的标题将转换为h1,h2等。
  • Lists

    清单
  • Tables are imported without formating like border and cell colors

    导入表格时不设置格式,例如边框和单元格颜色
  • Plain HTML formating like bold, italic, superscript, and subscript

    纯HTML格式,例如粗体,斜体,上标和下标
  • Images embedded in document are imported into WordPress

    文档中嵌入的图像将导入到WordPress中
  • Links

    链接
  • Textboxes are converted into plain paragraphs

    文本框将转换为普通段落

The plugin does not make any changes to your original .docx document, it does not even store it on your WordPress site.

该插件不会对您的原始.docx文档进行任何更改,甚至不会将其存储在您的WordPress网站上。

We hope this article helped you import .docx documents in WordPress. You may also want to see our guide on how to embed PDF, spreadsheet, and other documents in WordPress.

我们希望本文能帮助您在WordPress中导入.docx文档。 您可能还希望查看我们的指南,了解如何在WordPress中嵌入PDF,电子表格和其他文档

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-import-docx-documents-in-wordpress/

.docx导入excel

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值