Closed aecreations closed 9 months ago
The content script that inserts an HTML-formatted clipping into a rich text editor uses document.execCommand("insertHTML"...), which is deprecated[1].
document.execCommand("insertHTML"...)
Refactor the code to use the DOM Range API: https://developer.mozilla.org/en-US/docs/Web/API/Range
-- [1] https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand
Unfortunately, this improvement doesn't resolve the issue with pasting HTML-formatted clippings into rich text editors that use the CKEditor library (issue #379).
The content script that inserts an HTML-formatted clipping into a rich text editor uses
document.execCommand("insertHTML"...)
, which is deprecated[1].Refactor the code to use the DOM Range API: https://developer.mozilla.org/en-US/docs/Web/API/Range
-- [1] https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand