Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3619

Replace usage of document.execCommand (marked as obsolete)

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.9.5
    • None
    • Rich Text Editor
    • MOODLE_39_STABLE

    Description

      MDN has marked document.execCommand as obsolete. We use it in our WYSIWYG editor and also to copy/paste in desktop/browser.

      We should remove this code and replace it with an alternative. The bad news is that there is no easy alternative, from what I've seen we're supposed to work with Range&Selection and implement this feature ourselves.

      TrixEditor, made by Basecamp, announces that they don't use execCommand in their editor. I took a look if we could use it in the app, maybe it would save us some trouble, but I didn't see any Angular2 adapter so we'd have to do it ourselves.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dpalou Dani Palou
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: