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

Can not paste images from one wsyiwyg window to another

    XMLWordPrintable

Details

    • MOODLE_25_STABLE, MOODLE_28_STABLE, MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • MDL-45170-master
    • Hide

      Label:

      1. Add a label to a course.
      2. In the wysiwyg editor, type some text and upload a new image to be show in that label.
      3. Copy the text and image from the wysiwyg editor.
      4. Save the label and return to course.
      5. Create a new label in the course.
      6. Paste into the wysiwyg.
      7. Save and return to course.

      Assignment (tested separately because of the update_calendar function):

      1. Add an assignment to a course.
      2. In the wysiwyg editor, type some text and upload a new image to be shown in the description. Check the "Display description on course page" box.
      3. Copy the text and image from the wysiwyg editor.
      4. Save the assignment and return to course. Verify that the image is displayed on the course page.
      5. View the events calendar. Verify that the image is not displayed.
      6. Create a new assignment in the course.
      7. Paste into the wysiwyg. Verify that the image displays in the editor. Check the "Display description on course page" box.
      8. Save the assignment and return to course. Verify that the image is displayed on the course page.
      9. View the events calendar. Verify that the image is not displayed.
      Show
      Label: Add a label to a course. In the wysiwyg editor, type some text and upload a new image to be show in that label. Copy the text and image from the wysiwyg editor. Save the label and return to course. Create a new label in the course. Paste into the wysiwyg. Save and return to course. Assignment (tested separately because of the update_calendar function): Add an assignment to a course. In the wysiwyg editor, type some text and upload a new image to be shown in the description. Check the "Display description on course page" box. Copy the text and image from the wysiwyg editor. Save the assignment and return to course. Verify that the image is displayed on the course page. View the events calendar. Verify that the image is not displayed. Create a new assignment in the course. Paste into the wysiwyg. Verify that the image displays in the editor. Check the "Display description on course page" box. Save the assignment and return to course. Verify that the image is displayed on the course page. View the events calendar. Verify that the image is not displayed.

    Description

      If you copy/cut text and images from one wysiwyg editor window to another, it appears to work for a short period of time but then subsequently returns a broken image.

      In the first wysiwyg window, you see an image file uri with draftfile.php. When you paste this into the other wysiwyg, you see the same uri. Upon saving them, the wysiwyg you copied from converts to a working pluginfile.php uri and the one you pasted to becomes a brokenfile.php. This happens in any wysiwyg editors. It behaves the same in ATTO and TinyMCE. It is not limited to an activity or module.

      1. Add a label in to course.
      2. In the wysiwyg editor, type some text and upload a new image to be show in that label.
      3. Copy the text and image from the wysiwyg editor.
      4. Save the label and return to course.
      5. Create a new label in the course.
      6. Paste into the wysiwyg.
      7. Save and return to course.

      Returns a broken file, even though the wysiwyg showed the image correctly.

      Ideally, this would add the image properly.

      Attachments

        Issue Links

          Activity

            People

              cfulton Charles Fulton
              willylee Willy Lee
              Ryan Wyllie Ryan Wyllie
              Jun Pataleta Jun Pataleta
              Anna Carissa Sadia Anna Carissa Sadia
              Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              22 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/18

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m