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

Alignment and anchor attributes are not saved in Rich Text custom style

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      • Configure a block custom style (inline: false) and activate it in your admin siteaccess
      • Create or edit a content with a rich text field
      • In the rich text field, insert a new custom style element
      • Add and anchor ID on the custom style element
      • Set the alignment of the custom style element
      • Click on "Save"

      Expected behaviour: the custom style element has the anchor and the alignment that has been previously set

      Actual behaviour: the anchor and alignment is not present after saving

      Additional information: it seems that these attributes are not saved at all in the database. The only info that is saved is the "ez-has-anchor" class, which is added when adding an anchor. The information stored in database looks like this :

      <eztemplate ezxhtml:class="ez-has-anchor" name="my_custom_style" type="style">
          <ezcontent>test</ezcontent>
      </eztemplate>

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertinremi31@gmail.com bertinremi31@gmail.com
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: