Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-63872

Pasted Screenshots Fail To Render In Visual Editor

XMLWordPrintable

      Summary

      When pasting a screenshot into the comment field of an issue using the visual editor, it appears to render correctly, but when saving the comment it does not save correctly, giving a 'Unable to render embedded object' error:

      Environment

      • JIRA 7.3.x
      • JIRA 7.2.x with the Rich Text Editor Labs feature enabled.

      Steps to Reproduce

      1. Enabled RTE if on JIRA 7.2.x
      2. Copy an image into your clipboard.
      3. Add a new comment in Visual mode, and paste your screenshot in.
      4. Save your comment.
      5. If the problem can't be reproduced, try editing the comment and adding the screenshot again

      Expected Results

      The screenshot will render as it appears in the visual editor.

      Actual Results

      You receive the following error:

      Notes:

      • The issue will behave differently in IE.
      • Tested using JIRA 7.4.0 using Chrome v60.0.3112.101 (Official Build) (64-bit) and 59.0.3071.115 (Official Build) (64-bit), the behavior will be shown like below in IE:
      • Following the same steps as above in IE the image is rendered properly both in IE and Chrome.

      Workaround

      • To use the function to "Browse for file" or Drag 'n Drop. to upload the images (without copy/paste).
      • Use the "Text" mode or disable RTE to remove the "Visual" mode.

        1. browse.png
          browse.png
          39 kB
        2. image-2017-06-19-15-29-09-536.png
          image-2017-06-19-15-29-09-536.png
          34 kB
        3. image-2020-06-25-17-39-00-132.png
          image-2020-06-25-17-39-00-132.png
          262 kB
        4. image-2020-06-25-17-40-34-581.png
          image-2020-06-25-17-40-34-581.png
          262 kB
        5. Screen Shot 2017-08-16 at 7.56.10 PM.png
          Screen Shot 2017-08-16 at 7.56.10 PM.png
          25 kB
        6. unable_to_render.png
          unable_to_render.png
          19 kB

              Unassigned Unassigned
              agallien@atlassian.com Alex Gallien
              Votes:
              71 Vote for this issue
              Watchers:
              67 Start watching this issue

                Created:
                Updated: