0
How can I get document.execCommand to work in browsers other than chrome? If I canât, what are the alternatives?
https://code.sololearn.com/W8iBH8BAhwct/?ref=app Iâm creating a text editor and using document.execCommand to generate and modify HTML. Unfortunately this doesnât seem to be available in browsers like IE and Firefox. Iâve searched for alternatives or solutions to this problem but havenât had any luck. If someone has a solution or alternative to share that would be very much appreciated.
1 Answer
+ 1
It is supposed to be (partially) supported by major browsers, according to this page on MDN (Mozilla Developers Network):
https://developer.mozilla.org/en-US/docs/Web/API/document/execCommand
Check it, and make sure to use it the right way and only for/with command widely supported ;)