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

Atto: Selection reverts to previous selection on toolbar button press in WebKit browsers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide

      This is a WebKit issue.

      1. In Chrome and Safari, before applying the patch:
        • Launch Atto.
        • Select some text, making sure that the cursor stays within the editor (a good way to do this is by double-clicking on a word).
        • Select some other text, dragging outside of the editor such that your cursor is no longer within it when you release your mouse button.
        • Click a toolbar button.
          • Observe that your selection reverts to your first selection.
      2. Apply the patch. Now, in all supported browsers:
        • Launch Atto.
        • Select some text, making sure that the cursor stays within the editor (a good way to do this is by double-clicking on a word).
        • Select some other text, dragging outside of the editor such that your cursor is no longer within it when you release your mouse button.
        • Click a toolbar button.
          • Observe that your selection stays the same.
      Show
      This is a WebKit issue. In Chrome and Safari, before applying the patch: Launch Atto. Select some text, making sure that the cursor stays within the editor (a good way to do this is by double-clicking on a word). Select some other text, dragging outside of the editor such that your cursor is no longer within it when you release your mouse button. Click a toolbar button. Observe that your selection reverts to your first selection. Apply the patch. Now, in all supported browsers: Launch Atto. Select some text, making sure that the cursor stays within the editor (a good way to do this is by double-clicking on a word). Select some other text, dragging outside of the editor such that your cursor is no longer within it when you release your mouse button. Click a toolbar button. Observe that your selection stays the same.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-45040-master
    • Story Points:
      5

      Description

      This presents when a selection is made by dragging such that the cursor is outside of the editor when the mouse button is released.

      Repro steps:

      1. Launch Atto.
      2. Select some text, making sure that the cursor stays within the editor (a good way to do this is by double-clicking on a word).
      3. Select some other text, dragging outside of the editor and releasing your mouse button.
      4. Click a toolbar button.
        • Observe that your selection reverted to the first thing you selected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jethac Jetha Chan
              Reporter:
              jethac Jetha Chan
              Peer reviewer:
              Adrian Greeve Adrian Greeve
              Integrator:
              Sam Hemelryk Sam Hemelryk
              Tester:
              Sam Hemelryk Sam Hemelryk
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14