Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-74723

Atto RecordRTC: Recorded audio not removable

    XMLWordPrintable

Details

    • MOODLE_311_STABLE

    Description

      Certain html element (e.g. <audio>)are not selectable in Atto and thus not removable (unless you switch to the html source code view) when nothing else is in the editor.

      Steps to reproduce

      1. Open any page with an atto editor.
      2. Record audio through the recordrtc atto plugin.
      3. Remove the recorded audio again.
      4. Record audio through the recordrtc atto plugin.
      5. You can now no longer select anything in the atto editor (in wysiwyg mode) and thus can't remove the audio.

      The selection in atto is handled through rangy (lib/editor/atto/yui/src/rangy). I've tested this in Chrome and noticed that here the browser returns a Selection object with a rangeCount of 0 which leads to nothing being selected.

      Workaround

      Switch to html mode and remove the element there.

      Possible solution

      Since rangy is no longer being maintained (except for this fork) a solution could be for recordrtc to add a <br> after the recording if the editor is empty otherwise.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tschroeder Tim Schroeder
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: