Forum Moderators: open

Message Too Old, No Replies

Replacement for execCommand

         

csdude55

8:29 pm on Jul 28, 2022 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've been using execCommand for about 6 years to insert emojis and add bold, italics, underlines, and font styling to text entered by users in a contentEditable.

And today, I learned that it's been deprecated :-/

[developer.mozilla.org...]

It suggests using ClipboardApi instead, but that doesn't appear to offer anything like insertHTML, bold, italics, underline, and font styling.

Any thoughts on a replacement?