Skip to content

document.execCommand is deprecated #263

@Andrew-Chen-Wang

Description

@Andrew-Chen-Wang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions