wasabeef / richeditor-android

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.
Apache License 2.0
6.24k stars 1.2k forks source link

document.execCommand is deprecated #263

Open Andrew-Chen-Wang opened 3 years ago

Andrew-Chen-Wang commented 3 years ago

Hey, I'm currently maintaining an iOS version of this rich editor. While writing #262, I noticed that the document.execCommand is deprecated. Are there any plans to migrate rich_editor.js to more customized commands here?

It seems like the only things we can do is to set the style of elements ourselves. For example, justifyLeft is el.style.textAlign = "left". But I'm not sure how compatible that is for each of our browsers (mobile chrome and safari). Any other blockers you can think of?

Side note: I think lots of the JS could use the ES6 arrow functions () => {} and let instead of var.