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

Atto selection is not updated when drag & drop content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.9.1
    • Text editor Atto
    • MOODLE_29_STABLE
    • MDL-51547-master
    • 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).

      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

            dthies Daniel Thies
            howardsmiller Howard Miller
            David Monllaó David Monllaó
            Adrian Greeve Adrian Greeve
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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