Limited Availability
Clipboard
id: execcommand
execCommand()
The
execCommand() method reads and writes from the clipboard and performs editing commands on editable text, such as changing the font name or style. Related methods check whether commands are supported, enabled, or applied.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
1
Supported
Mozilla Firefox
69
Supported
Apple Safari
1.3
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
79
Safari iOS
1
Specifications and References
MDN Browser Compat Data Keys:
api.Document.execCommand ↗
api.Document.execCommand.copy ↗
api.Document.execCommand.cut ↗
api.Document.execCommand.defaultParagraphSeparator ↗
api.Document.execCommand.insertBrOnReturn ↗
api.Document.queryCommandEnabled ↗
api.Document.queryCommandIndeterm ↗
api.Document.queryCommandState ↗
api.Document.queryCommandSupported ↗
api.Document.queryCommandValue ↗