react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

execCommand is deprecated

Open cristianoccazinsp opened this issue 4 years ago • 2 comments
trafficstars

execCommand and related commands (queryCommandState, queryCommandValue and all related commands) are deprecated and will eventually stop working. Also, execCommand creates inconsistent behaviour across browser implementations. Lastly, it generates obsolete HTML (e.g., <strike> or <i> tags) which are deprecated in the HTML5 standard.

Ideally, a newer approach should be taken, such as the one explained here: https://stackoverflow.com/questions/60581285/execcommand-is-now-obsolete-whats-the-alternative

Or here: https://medium.com/@jitubutwal144/three-different-ways-to-build-inline-content-editor-using-javascrpit-d58c2edac9cb

cristianoccazinsp avatar Dec 24 '20 03:12 cristianoccazinsp

I also found this problem, but I don’t have much time to maintain and update this editor

stulip avatar Dec 24 '20 04:12 stulip

I guess these HTML4 features still have a couple of years ahead before they are removed, so it's not high priority. Nevertheless, the use of some old tags may cause issues with newer renderers that ignore the deprecated tags.

After some of the other issues are resolved I may take a stab into fixing this one :).

Either way, great work with the editor!

El jue., 24 de diciembre de 2020 01:02, stulip [email protected] escribió:

I also found this problem, but I don’t have much time to maintain and update this editor

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wxik/react-native-rich-editor/issues/128#issuecomment-750729740, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALU263HNMR56GKXXUDG4EVLSWK4OVANCNFSM4VHW42VQ .

cristianoccazinsp avatar Dec 24 '20 04:12 cristianoccazinsp