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

WYSIWYG editor won't read tables with colored text correctly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.2.2, 1.3 M2
    • None
    • Both 1.3 M2 and 1.2.2, using the standalone zip version on Windows

    Description

      I tried both 1.3 M2 and 1.2.2, and I had the following problem (both using the standalone zip version on Windows) :

      If you create a table on a page using WYSIWYG, it all works great. If you highlight a the first table cell of a row or a whole row and use the palette button to change the color of those cells, it works. If you save the page, it looks good. If you edit it again with the WYSIWYG, however, it doesn't render it right, and the cell/row that you changed color of gets appended to the line above it in the WYSIWYG editor. Using the WIKI editor (as long as you don't save the broken page back down from the WYSIWYG editor), everything still works good. So it's how the editor is choosing to render out the page that seems to be causing the problem.

      Bolding a cell/row doesn't seem to cause this problem, only changing the text color.

      Below is an example of some code that won't show up correctly in the WYSIWYG editor (even though it was the WYSIWYG editor that created it)

      {table}
      table info |test table
      test test test |test test test
      asdklfj|lkajsdlj {style:type=span|color=#990000}test{style}|{style:type=span|color=#990000}test{style}{table}

      The last row shows up tacked on to the end of the 2nd to last row, instead of appearing as its own row. This is only the case in the WYSIWYG editor. This code displays fine when just viewing the page.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            bjquinn BJ Quinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: