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

RTE buttons don't work when all text is selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.8.1
    • Component/s: Rich Text Editor
    • Labels:
    • Testing Instructions:
      Hide

      This issue should be tested in one device of each type.

      1. Navigate to a page with a text editor. Ie. new page on a wiki.
      2. Write some text, add headings, add lists.
      3. Select all the text.
      4. Click on any button of the rte, ie. bold.
      5. Check it works.
      6. Note: This may close the keyboard but it's the better solution that we can provide quickly and right now.
      Show
      This issue should be tested in one device of each type. Navigate to a page with a text editor. Ie. new page on a wiki. Write some text, add headings, add lists. Select all the text. Click on any button of the rte, ie. bold. Check it works. Note: This may close the keyboard but it's the better solution that we can provide quickly and right now.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.8.1

      Description

      To reproduce, first add some text to the RTE, adding lists, headings, etc.

      Then select all the text in the editor and click on the toolbar buttons. Specially the Toggle editor, lists, and headings won't work.

      This happens because of the event bubbling and the propagation. When the blur is emitted this cancels the click event. This should not happen because on mousedown the event is not propagated so the focus event is not fired but for any unknown reason this is not correctly done. Check last 30 seconds of the video in MOBILE-3366

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pferre22 Pau Ferrer
              Reporter:
              pferre22 Pau Ferrer
              Peer reviewer:
              Dani Palou Dani Palou
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Isabel Renedo Rouco Isabel Renedo Rouco
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Mar/20