I intended to use Document.execCommand()
method along with contenteditable
attribute to build my custom WYSIWYG editor. But when I checked the documentation for Document.execCommand()
, I found that it’s now obsolete. What’s the modern (or extant) alternative for it?