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

Atto selection is not updated when drag & drop content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide

      In major browsers including Chrome/Safari and also Firefox

      1. Open page with Atto editor field
      2. Type some text into the editor. Apply bold or italic to some parts.
      3. Use image tool to insert an image in text.
      4. Make sure something other that image is selected.
      5. Select the image by dragging slightly and releasing.
      6. Click the link button and add a url.
      7. Verify the the anchor is added to the image and not placed at the previous selection.
      8. Select image or a section of the text and drag it to a new position.
      9. Click bold button with no intervening steps.
      10. Verify that the selection is the same as it was before clicking the button.
      11. Repeat with text selected along with image before or after and again with plain text. Verify that dropped material is selected in each browser and that selection is saved when focus is lost.
      12. Drag an image from desktop to editor. Verify the when image is uploaded it is selected and that the selection is saved (Clicking image tool should load url).
      Show
      In major browsers including Chrome/Safari and also Firefox Open page with Atto editor field Type some text into the editor. Apply bold or italic to some parts. Use image tool to insert an image in text. Make sure something other that image is selected. Select the image by dragging slightly and releasing. Click the link button and add a url. Verify the the anchor is added to the image and not placed at the previous selection. Select image or a section of the text and drag it to a new position. Click bold button with no intervening steps. Verify that the selection is the same as it was before clicking the button. Repeat with text selected along with image before or after and again with plain text. Verify that dropped material is selected in each browser and that selection is saved when focus is lost. Drag an image from desktop to editor. Verify the when image is uploaded it is selected and that the selection is saved (Clicking image tool should load url).
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51547-master

      Description

      1. Create some content in an Atto editor instance (say the contents of a Page resource).
      2. Add any image in the edit area
      3. Attempt to select the image and apply a link to it
      It doesn't work

      Analysis...
      I think that the issue is that one cannot select the image. It seems to select both the image and the bounding box of the editor. When inspecting the generated HTML, the link is there just not attached to the image.

      Chrome is Version 45.0.2454.99 (64-bit) on OSX, but we have reproduced it on other platforms. Works fine in IE and Firefox

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dthies Daniel Thies
              Reporter:
              howardsmiller Howard Miller
              Integrator:
              David Monllaó David Monllaó
              Tester:
              Adrian Greeve Adrian Greeve
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated: