Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-7195

[Forward port] Xinha: <br/> elements for empty field only removed in wysiwyg mode

    XMLWordPrintable

Details

    Description

      Reproduction path:

      • open a Xinha field
      • switch to htmlmode and remove all content
      • add <br/>
      • press save

      In the console you can see that the field will contain something like:

      <html>
      <body>
      <br/>

      </body>
      </html>

      The expected behavior is that what is persisted in the repository is:

      <html><body></body></html>

      Furthermore, the algorithm for removing the <br/> elements from an 'empty' Xinha field seems wrong. For example:

      • open a Xinha field
      • switch to htmlmode and remove all content
      • add <br/><br/><br/><br/>
      • now every time you switch between WYSIWYG and htmlmode one <br/> element is removed.

      Expected behaviour: <br/> are not removed when switching back and forth from WYSIWYG to source.

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              abogaart Arthur Bogaart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: