Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-32353

XMLText table is converted to RichText <table> tag, when should be converted to <informaltable>

    XMLWordPrintable

    Details

      Description

      After executing command php bin/console ezxmltext:convert-to-richtext tables from the XMLText field will be converted to the <table> tag, when new tables inside the RichText editor are created using <informaltable> tag.

      This behavior is causing a different outcome rendered in the frontend, which is causing issues with styling and maintaining.

      Steps to reproduce
      1. Clean installation of eZ Platform 2.5 or Ibexa DXP 3.2/3.3
      2. Install and enable https://github.com/ezsystems/ezplatform-xmltext-fieldtype
      3. Login into the back office as admin to create and publish a new Image content Image.
      4. Create a new Content Type XML Test containing XML block field called body.
      5. Create and Publish a new XML Test Content, with body set to:

      <?xml version="1.0" encoding="UTF-8"?>
      <section xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/" xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/">
        <paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/">
      	 <table class="default" border="0" width="100%" custom:align="center" custom:summary="Lorem ipsum" custom:caption="Lorem ipsum">
      		<tr>
      		   <td xhtml:width="100%" custom:valign="top">
      			  <paragraph>Lorem ipsum dolor sit amet, consectetur adipiscing elit</paragraph>
      		   </td>
      		</tr>
      	 </table>
      	 <line>
      		<embed view="embed" size="medium" object_id="57" custom:offset="0" custom:limit="48" />
      	 </line>
        </paragraph>
      </section>

      6. Execute the Command converting XML block to RichText field.

      php bin/console ezxmltext:convert-to-richtext
      

      and clear the cache.
      7. Open Test content again and edit it. Add a second table below the first one and publish Content.

      Result
      Tables will be rendered differently (see the attachment).

      Expected result
      Tables will be rendered the same.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: