I'm currently working on a rich text editor (WYSIWYG). I went through several articles and all of them explained how to do that using
document.execCommand. All the libraries out there does the same.
However, MDN says this 😱
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Is it true? Then, what should I use?
Or, is this statement wrong?