Skip to content

document.execCommand is deprecated #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Andrew-Chen-Wang opened this issue Apr 27, 2021 · 0 comments
Open

document.execCommand is deprecated #263

Andrew-Chen-Wang opened this issue Apr 27, 2021 · 0 comments

Comments

@Andrew-Chen-Wang
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant