The async clipboard api currently does not support the text/html format. This feature adds support for copying and pasting html from the clipboard. The HTML is sanitized when it is read and written to the clipboard.

Motivation

The purpose of HTML for Async Clipboard is to provide access to HTML, a format often used to hold rich text and documents. This could be used by: -Web editors, to copy and paste rich text with images and links. -Remote desktop applications, to synchronize text/html payloads across devices. -Sites with clipboard integration, to supersede existing document.execCommand()’s copy and paste functions.

Demo

Documentation

Specification

Specification link


Final published standard: Recommendation, Living Standard, Candidate Recommendation, or similar final form

Status in Chromium

Blink>DataTransfer


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • No signal
  • No signal
  • Shipped/Shipping
  • Positive

Owners

Intent to Prototype url

Intent to Prototype thread

Search tags

clipboard, text/html,

Last updated on 2021-09-18