text/html support for async clipboard api

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.

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

Established standard

Status in Chromium

Blink>DataTransfer


Enabled by default (tracking bug) in:

  • Chrome for desktop release 86
  • Chrome for Android release 86
  • Android WebView release 86

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

Last updated on 2020-09-16