guideImport from Word vs Paste from Word comparison

In addition to Import from Word, there is a simpler Paste from Word plugin that lets you paste content from Microsoft Word while maintaining its original structure and formatting. However, these two solutions differ in many ways.

# Paste From Office

The paste from Office and paste from Office Enhanced features allow you to paste content from Microsoft Word into your CKEditor 5 WYSIWYG editor and maintain the original structure and formatting. After creating a document in Microsoft Word you can simply copy it to CKEditor 5 and retain basic text styling, heading levels, links, lists, tables and images – as long as these features are supported by the editor itself.

  • Suitable for small documents and for use cases in which only parts of the document are selected and copied.
  • Relies on OS Clipboard HTML, which limits the number of features that can be supported.
  • Preserves the original DOCX formatting that was selected and copied by hand.
  • Simple, intuitive, but cannot be used to automate migration process of many Word documents via REST API.

This operation is fast and easy, but can only be done “by hand”.

# Import from Word

The Import from Word service can be automated and does not need the presence of the WYSIWYG editor, nor human supervision to convert files. Compared to Paste from Word, Import can work with any content formatting and is not limited by features supported by the editor.

  • Allows for converting large documents into HTML that can be easily imported to CKEditor 5 and other tools.
  • Operates directly on XML, which includes more information about the document and Word instance settings.
  • Available as a CKEditor 5 plugin and as a REST API for a direct server-to-server conversion.
  • Available both as a SaaS service and as an On-Premises solution.
  • Suitable for migration of the whole database of Word documents to HTML via a REST API service.
  • Perfect solution for more advanced documents that need to be edited or displayed in the browser.
  • Supports collaboration features like track changes and comments out of the box.

# Features comparison

The following tables compare the features of the Paste from Office and Paste from Office Enhanced CKEditor 5 plugin and the Import from Word feature. For a more detailed Import from Word features overview, please refer to the content formatting guide.

# Collaboration features

Feature name                                                     Paste Enhanced Import
Comments archive
Comments - images
Comments - table cells
Track Changes - text insertion
Track Changes - text deletion
Track Changes - move text
Track Changes - images
Track Changes - tables
Track Changes - table text
Track Changes - table rows
Track Changes - table cells
Track Changes - lists
Track Changes - list text
Track Changes - list items
Track Changes - text formatting

⚠ Import: Track Changes for unsupported features will preserve the original content of the author’s suggestion. However, they will not be recognized as proper Track Changes suggestions. As an example, if a user adds a table using Track Changes, the table will be output in HTML, but it will not be marked as a suggestion. That limitation is going to be fixed soon, with upcoming Import From Word releases.

# Inline formatting

Feature name                                                     Paste Enhanced Import
Font color
Font background
Font size
Font family
Underline custom ⚠️
Soft line break
Small caps
All caps
Letter spacing ⚠️
Font stretching
Hidden text ⚠️ ⚠️
  • ⚠️ Paste: Letter spacing and hidden text are only supported with the General HTML support feature enabled.
  • ⚠️ Paste Enhanced: Advanced underline is pasted as regular underline.
  • ⚠️ Paste Enhanced: Hidden text is only supported with the General HTML support feature enabled.

# Paragraphs

Feature name                                                     Paste Enhanced Import
Text alignment
First line indentation ⚠️ ⚠️
Hanging indentation ⚠️ ⚠️
Line height ⚠️ ⚠️
Paragraph spacing ⚠️ ⚠️
Paragraph borders ⚠️ ⚠️
Background color ⚠️ ⚠️
  • ⚠️ First line indentation / Hanging indentation / Line height / Paragraph spacing / Paragraph borders are only supported with the General HTML support feature enabled.

# Headings

Feature name                                                     Paste Enhanced Import
Built-in heading styles
Preservation of heading formatting
Custom outline level

# Lists

Feature name                                                     Paste Enhanced Import
Ordered lists
Unordered lists
Custom list markers ️❌
Ordered list language-specific markers
Custom start number
Different start number in the middle
Multi-level list ⚠️
  • ⚠️ Import: Support for multi-level lists with X level of tabulation shifting is now available. Please be aware that marker continuation from previous levels (e.g. 2.1, 2.2) is not supported for now.

# Tables

Feature name                                                     Paste Enhanced Import
Table width
Cell/column width
Cell/row height
Cell merging
Cell padding
Cell spacing
Cell’s horizontal alignment
Cell’s vertical alignment
Table background color
Cell background color
Table border style
Table border color
Cell border style
Cell border color
Table header
Nested tables
Table alignment/floating
Table caption ⚠️ ⚠️ ⚠️
  • ⚠️ Table caption is converted to styled (only Import) paragraph.

# Images

Feature name                                                     Paste Enhanced Import
Embedded images
External images
Image link
Image alternative text
Image height
Image width
Image alignment
Absolutely positioned images ⚠️ ⚠️ ⚠️
Image caption ⚠️ ⚠️ ⚠️
  • ⚠️ Absolutely positioned images are retained, but their original position is lost.
  • ⚠️ Image caption is converted to a styled (Import only) paragraph.

# Page breaks

Feature name                                                     Paste Enhanced Import
Normal page break
Page break before style

# Horizontal lines

Feature name                                                     Paste Enhanced Import
Horizontal line

# Word Styles

Feature name                                                     Paste Enhanced Import
Built-in styles ⚠️
Format styles ⚠️
Font styles ⚠️
Paragraph styles ⚠️
Border styles ⚠️
Numbering styles

# Default styles

Default styles require enabling config.default_styles configuration option, both for CKEditor 5 Import from Word plugin and REST API.

Feature name                                                     Paste Enhanced Import
Format styles ⚠️
Font styles ⚠️
Paragraph styles ⚠️
  • ⚠️ Paste: Document default styles are partially supported, but can’t be disabled / enabled on purpose.

# Sections

Feature name                                                     Paste Enhanced Import
Document margins
Document size
Multi-sectioned document
Section columns
Headers and footers
  • ⚠️ Import: Multi-sectioned document and section columns are currently not supported.

# Complex objects

Feature name                                                     Paste Enhanced Import
Table of Contents ⚠️
Form objects ⚠️ ⚠️ ⚠️
  • ⚠️ Paste: Table of Contents text only is preserved, but the structure and styling are lost.
  • ⚠️ Form objects: text and styling are retained only.

# Technical details

To better understand the differences between these two products, it is worth learning how both features work on a technical level. In the case of Paste From Word, the editor uses the operating system’s clipboard, which is fed with Word content in HTML upon copying it from the document. That HTML is delivered by the Word application itself and includes the essential formatting of the document. When the user pastes something from the Word document, CKEditor 5 cleans that HTML up and makes it semantically correct, so it can be consumed by the editor. However, that operation has its own limitations, as CKEditor 5 is only able to understand as much content, as it gets from the clipboard and depends entirely on the clipboard implementation of the Microsoft Word application.

The Import from Word feature does not have this limitation. As it has direct access to the document, it is able to retrieve as much information from the document, as Word itself. Therefore, it is possible to support things like collaboration features, document settings, and others, which would not be normally available when operating on clipboard content only. We are no longer limited by the MS Word application and thanks to that, Import from Word produces a more advanced HTML than Paste from Word.