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

Atto RecordRTC: Recorded audio not removable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.11.7
    • None
    • Libraries, Text editor Atto
    • 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
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: