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

paragraph drops its class when alignment is applied in ezoe

    Details

      Description

      If you center a paragraph and then apply class information, this is properly saved.

      However, If you apply class information and then center a paragraph, the class information is lost.

      Steps to reproduce:

      1. Add test paragraph class to settings/override/content.ini.append.php:

      [paragraph]
      AvailableClasses[]=lead
      

      2. Create or edit an article;
      3. Add 2 paragraphs to "body" field e.g.:

      Paragraph 1
      Paragraph 2
      

      4. Center paragraph 1, and then add "lead" class to it;
      5. Add "lead" class to paragraph 2, and then center it;
      6. Disable editor and look at resulting code:

      <paragraph class="lead" align="center">Paragraph 1</paragraph>
      <paragraph align="center">Paragraph 2</paragraph>
      

      Paragraph 1 is OK, while paragraph 2 has lost its class information.

        Activity

        Show
        Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/911
        Show
        Damien Pobel (Inactive) added a comment - Fixed in ezpublish-legacy: master: http://github.com/ezsystems/ezpublish-legacy/commit/9870ef321bf58dbfe1d8645c6ad8874571b40951
        Hide
        Pedro Resende (Inactive) added a comment -

        Tested and approved by Q.A.

        Show
        Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nuno Oliveira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours
              3h