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

Faulty repeated insertion of class="wikiinternallink" by WYSIWYG editing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • None
    • Unknown

    Description

      This behavior is similiar to XRENDERING-600 ("wikiattachmentlink" was duplicated)

      If you create a wiki link - using the Wiki-Editor - like

      [[(% style="background-color:black; color:white" %) John Doe >>path:mailto:john.doe@nowhere.org]]

      with style attributes within the link text, this will be rendered to HTML like

         <span class="wikiinternallink">
           <a href="mailto:john.doe@nowhere.org">
             <span style="background-color:black; color:white"> John Doe </span>
           </a>
         </span>

      The problem is that the WYSIWYG-Editor/Rendering taskl will write the following source back to the document during save operation with adding a class specification.

      [[(% class="wikiinternallink" style="background-color:black; color:white" %) John Doe >>path:mailto:john.doe@nowhere.org]]

      But: The class name "wikiinternallink" will be added every time  to the link the WYSIWYG editor is used with save - resulting in

      [[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink .........

       When a document has > 1000 additional class attributes browser sometimes get problems.

       

      Last tested with version 13.10.4

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              NorSch Norbert Schwarz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: