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

invalid html generated by wysiwyg editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 5.4
    • WYSIWYG Editor
    • None
    • chromium Version 33.0.1750.152 Ubuntu 13.10 (256984)
    • Unknown

    Description

      to repeat:
      First open a javascript console so it is there when you need it....
      Open a WYSIWYG editor over a blank page.
      Click [Table] -> Insert Table, Insert the table as default clicking [insert table]
      move the cursor 8 spaces to the right with the arrow key so it is on the outside edge of the table.
      press enter once
      click the button to insert a bulleted list.

      In the javascript console, paste the following:

      document.getElementsByClassName('gwt-RichTextArea')[0].contentWindow.document.body.innerHTML
      

      Notice it prints invalid HTML as follows:

      <table><thead><tr><th>&nbsp;</th><th>&nbsp;</th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table><p><ul><li><br></li></ul></p>
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: