Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3965

Relative images are not displayed when switching from Source tab to Wysiwyg tab

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.0.1, 2.1 M1
    • 1.9, 2.0 M1
    • WYSIWYG Editor
    • None
    • Integration
    • High
    • Hard

    Description

      To reproduce, open the wysiwyg editor, and insert an image attached to the current page, say image.png, using the Image menu.
      Switch to source, you should see something like

      [[image:image.png]]
      

      Switching back to the wysiwyg tab will not display the image anymore but its alt text, and the src of the image will be something like

      /xwiki/bin/download/Fake/Document/image.png
      

      This is happening because on tab switch the content of the document is re-rendered in a WysiwygService function which does not have the correct context.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: