Report post

What does execcommand do?

Most commands affect the document's selection (bold, italics, etc.), while others insert new elements (adding a link), or affect an entire line (indenting). When using contentEditable, execCommand () affects the currently active editable element.

Is execcommand() a Boolean?

The execCommand () method is deprecated. Do NOT use it. The applets property returns an empty HTMLCollection in all new browsers. The element is not supported in HTML5. A Boolean. Specifies if the UI should be shown or not. Some commands need a value to be completed. true if the command is supported, otherwise false.

What does execcommand do when using contentEditable?

When using contentEditable, execCommand () affects the currently active editable element. The Clipboard API can be used instead of execCommand in many cases, but execCommand is still sometimes useful.

Can execcommand be used instead of clipboard?

The Clipboard API can be used instead of execCommand in many cases, but execCommand is still sometimes useful. In particular, the Clipboard API doesn't replace the insertText command, which you can use to programmatically replace text at the cursor while preserving the undo buffer (edit history) in plain textarea and input elements.

The World's Leading Crypto Trading Platform

Get my welcome gifts