Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5048

Richtext editor not handling sublists when parent contains line breaks

    XMLWordPrintable

Details

    • Yes

    Description

      The richtext editor supports itemized and numberc lists. Such lists can be nested inside each other. However, if a list contains both line breaks and sublist, user will get this error when trying to publish the content:

      Element section has extra content: itemizedlist

       

      The richtext markup after the XSLT transformation looks like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <section xmlns="http://docbook.org/ns/docbook" xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0">
         <para>This is a p</para>
         <para> </para>
         <itemizedlist>
            <listitem>
               <para>item 1</para>
            </listitem>
            <listitem>
               <para>
                  <literallayout class="normal">
                     item 2
      this is a line 2
      this is line 3
                     <itemizedlist>
                        <listitem>
                           <para>item 3</para>
                        </listitem>
                     </itemizedlist>
                  </literallayout>
               </para>
            </listitem>
         </itemizedlist>
         <itemizedlist>
            <listitem>
               <para> </para>
            </listitem>
         </itemizedlist>
      </section> 

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: