---
title: "Use copy/paste and HTML interoperability in Document Authoring"
canonical_url: "https://www.nutrient.io/guides/document-authoring/copy-paste-and-html-interoperability/"
md_url: "https://www.nutrient.io/guides/document-authoring/copy-paste-and-html-interoperability.md"
last_updated: "2026-06-08T17:11:05.445Z"
description: "Learn how Document Authoring handles rich clipboard content, plain-text paste, and HTML-based clipboard interoperability with other applications."
---

# Use copy/paste and HTML interoperability

Before you start, ensure the Document Authoring library is installed and running. Refer to the [getting started](https://www.nutrient.io/sdk/document-authoring/getting-started.md) guide.

Document Authoring supports rich clipboard workflows in the editor. When content is copied or pasted, the SDK uses standard clipboard formats such as plain text and HTML to preserve structure and formatting where possible.

This makes it convenient to move content between Document Authoring and other apps such as word processors, spreadsheets, or browser editors.

## Use the built-in clipboard UI

This section describes the clipboard actions Document Authoring provides.

Document Authoring includes built-in clipboard actions in the editor UI:

- Copy

- Cut

- Paste

- Paste without formatting

You can access these through the editor’s context menu. Standard keyboard shortcuts such as copy, cut, paste, and paste without formatting are also supported through the editor’s clipboard handling.

## Paste rich content from other applications

When an application places `text/html` data on the clipboard, Document Authoring can use that HTML payload to retain more formatting during paste.

That means pasted content can preserve more structure than a plain-text paste, depending on the source application and clipboard data.

If rich clipboard data is unavailable or can’t be interpreted, the editor falls back to plain text.

## Paste without formatting

Use **Paste without formatting** when you want only the text content and not the source styles or richer formatting.

This helps when you want to:

- Normalize content copied from emails or webpages

- Avoid unexpected fonts, colors, or spacing

- Paste content into an existing document style

## Copy content out of the editor

When you copy content from Document Authoring, the editor writes both plain text and HTML clipboard data.

That improves interoperability for apps that understand rich HTML clipboard content.

Plain-text clipboard data is also included so pasted content still works in destinations that only accept unformatted text.

## Understand the role of HTML interoperability

Document Authoring uses HTML mainly for clipboard interoperability. It helps the editor exchange rich content with other applications through clipboard HTML while still supporting plain-text fallback. When available, related clipboard data such as RTF can also help the SDK interpret pasted rich content.

This differs from the file import/export APIs used for formats such as DOCX, Markdown, RTF, or ODT.

## What to expect from pasted formatting

Clipboard interoperability works on a best-effort basis. The exact result depends on the clipboard data generated by the source application.

In general:

- Richer HTML clipboard data can preserve more formatting

- Unsupported or incompatible source formatting may be simplified

- Plain-text fallback remains available when you need predictable text-only insertion

Recent improvements in Document Authoring make HTML paste handling stricter and more predictable by dropping unsupported CSS color functions from pasted HTML.

## Related workflows

If you need document-level import or export rather than clipboard interchange, use the file format APIs instead:

- [`DocAuthSystem.import()`](https://www.nutrient.io/api/document-authoring/types/docauthsystem/#import)

- [`DocAuthDocument.export()`](https://www.nutrient.io/api/document-authoring/types/docauthdocument/#export)

- [`DocAuthSystem.createDocumentFromPlaintext()`](https://www.nutrient.io/api/document-authoring/types/docauthsystem/#createdocumentfromplaintext)

## Learn more

- [Document Authoring API reference](https://www.nutrient.io/api/document-authoring/)

- [Additional import and export formats](https://www.nutrient.io/guides/document-authoring/working-with-documents/additional-import-and-export-formats.md)

- [Customize actions and the toolbar](https://www.nutrient.io/guides/document-authoring/customize-actions-and-toolbar.md)
---

## Related pages

- [Changelog for Document Authoring SDK](/guides/document-authoring/changelog.md)
- [Enhancing document authoring with CSP guidelines](/guides/document-authoring/content-security-policy-and-firewall-rules.md)
- [Use events and integration APIs](/guides/document-authoring/events-and-integration.md)
- [Customize actions and the toolbar](/guides/document-authoring/customize-actions-and-toolbar.md)
- [Document Authoring SDK](/guides/document-authoring.md)
- [Get started with Document Authoring guides](/guides/document-authoring/intro.md)
- [How to self-host Document Authoring assets](/guides/document-authoring/self-hosting-assets.md)

