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

Don't output unnecessary Group Blocks in list items when copy pasting HTML content in WYSIWYG

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 17.1.0-rc-1
    • WYSIWYG Editor
    • None
    • Unknown

    Description

      If the HTML copied has list items that contain single blocks (e.g. images) wrapped inside a DIV, remove the unnecessary DIVs by using a filter.

      Example HTML:

      <ul>
      <li><div><img src="imagesrc"/></div></li>
      </ul>
      

      Example resulting xwiki syntax:

      * (((
      localimagesrc
      )))
      

      Expected:

      * localimagesrc
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: