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

paragraph drops its class when alignment is applied in ezoe

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no 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