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

Atto: Selecting text from right to left when setting styles sets wrong text

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE
    • MDL-47943-master
    • Hide

      Using Chrome browser, would be good if you can reproduce the issue (you can revert the patch + purge caches or use stable master) as some users do not experience this problem using chrome.

      1. Open atto in window.
      2. Enter several lines of text
      3. Highlight one and apply formatting (bold, italic or style)
      4. Highlight another line by clicking and dragging cursor outside editor before releasing mouse button.
      5. Apply formatting with button and verify that the last selection is formatted not previous.
      6. Repeat with other formatting options.

      Expected be action is that the formatting affects the most recently highlighted area.

      Show
      Using Chrome browser, would be good if you can reproduce the issue (you can revert the patch + purge caches or use stable master) as some users do not experience this problem using chrome. Open atto in window. Enter several lines of text Highlight one and apply formatting (bold, italic or style) Highlight another line by clicking and dragging cursor outside editor before releasing mouse button. Apply formatting with button and verify that the last selection is formatted not previous. Repeat with other formatting options. Expected be action is that the formatting affects the most recently highlighted area.

      I assume the correct way to set text as headings is to place the cursor on the text and choose the style, however, we have users that highlight the entire text by placing the cursor at the end of the text and then selecting backwards to the start and then selecting the style. When we do this often alternative text is being set to the chosen style.

      We have this issue in our 2.71 moodle, but I have also tested it on http://qa.moodle.net and http://school.demo.moodle.net. I am using Chrome 37.

      How to test:

      • Edit any page or anywhere else that uses the atto editor.
      • Enter some simple lines of text. I used:
        Heading 1
        Heading 2
        Heading 3
        Heading 4
        paragraph
      • Select a line of text (e.g. "Heading 1") by selecting from right to left move all the way out of editor on left side before releasing mouse button
      • Set heading to Heading style 1.
      • Repeat with other lines with other styles *problem also affect bold, italic, links, images...."

      Expected: Text selected becomes the chosen style
      Actual: Sometimes the text changed appears to be randomly chose, but presume it is not. selection reverts to previously saved value

            dthies Daniel Thies
            gedmonds Garry Edmonds
            David Monllaó David Monllaó
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.