Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-717

Unexpected link generated by bolded image

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Edit a page in WYSIWYG mode
      Write few words
      Insert an icon/image between them
      Select the image and some word and bold it using the toolbar menu item to obtain something like

      and save the document.

      Actual result:

      Expected result:

       

      Rendering reproduction steps:

      <p>x <strong>y&nbsp;<!--startimage:false|-|attach|-|Sandbox.WebHome@XWikiLogo.png--><img alt="" src="/xwiki/bin/get/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&amp;outputSyntax=plain&amp;language=en&amp;type=attach&amp;reference=Sandbox.WebHome%40XWikiLogo.png&amp;typed=true" /><!--stopimage--> z</strong></p>
      

      Is supposed to return:

      x **y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
      

      But returns:

      x [[image:/xwiki/bin/get/aaa/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&outputSyntax=plain&language=en&type=attach&reference=Sandbox.WebHome%40XWikiLogo.png&typed=true]][[image:/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?rev=1.1||alt="XWikiLogo.png"]]**y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
      

      Test case

      .#-----------------------------------------------------
      .input|html/5.0
      .# Verify that a figure that contains non-image-content is preserved in events and HTML 5 but lost in XWiki syntax.
      .#-----------------------------------------------------
      <p>x <strong>y&nbsp;<!--startimage:false|-|attach|-|Sandbox.WebHome@XWikiLogo.png--><img alt="" src="/xwiki/bin/get/aaa1.60.1/?sheet=CKEditor.ResourceDispatcher&amp;outputSyntax=plain&amp;language=en&amp;type=attach&amp;reference=Sandbox.WebHome%40XWikiLogo.png&amp;typed=true" /><!--stopimage--> z</strong></p>
      .#-----------------------------------------------------
      .expect|xwiki/2.1
      .#-----------------------------------------------------
      x **y [[image:Sandbox.WebHome@XWikiLogo.png]] z**
      

      Note that this is working on with xhtml/1.0

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          16 kB
        2. screenshot-2.png
          screenshot-2.png
          59 kB
        3. screenshot-3.png
          screenshot-3.png
          19 kB

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              acotiuga Alex Cotiugă
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: