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

RichText Field Type removes line breaks inside table cells

    Details

      Description

      In RichText Editor, you can create line breaks (inside a paragraph) by pressing Shift + Enter.
      If you create a table using the rich text field type and type some text in a table cell then add a line break and then add some more text after saving the line break is removed.
      If you add a new paragraph in the table cell by pressing Enter then delete the second line with Backspace and then you do the text + line break + text as I've written in the previous line the line break is kept.

      It seems like that line breaks are kept only if they are inside a paragraph (p tag) in a table cell.

      Steps to reproduce:
      1. Create a table in a rich text field.
      2. Click in a table cell
      3. Type "first line", press Shift+Enter, type "second line"
      4. Publish the content
      5. View / edit the content, no br tag between "first line" and "second line"

      Extra info:
      1. The "Steps to reproduce" create a markup like this in the editor (step 1-3):

      <td id="yui_3_18_1_1_1520515355833_79125">
      first line
      <br>
      second line
      <br>
      </td>

      2. If you click in an empty cell, press Enter to add new paragraph, then Backspace to delete the second paragraph then you do step 3 it creates a markup in the editor like this:

      <td id="yui_3_18_1_1_1520515355833_79227">
      <p>
      first line
      <br>​​​​​​​
      second line
      <br>
      </p>
      </td>

      This way the line break (br) is kept.

      Expected: br should be a valid element inside table cell without being inside paragraph tag.

        Issue Links

          Activity

          Hide
          Konrad Oboza added a comment -

          Dear Gábor Balogh!

          We are pleased to inform you, that v1.13.2 is already released. They fix for your issue is a part of it, so please perform an upgrade of your installation.
          As this ticket is technically solved and tested, it would be closed now. Please reopen it if you encounter any problems or have any questions regarding this topic.


          Best regards,
          Konrad Oboza
          Product Support Engineer

          eZ Platform Enterprise Edition v2.1 is now available, Easier to Build a Solid Content Business
          http://ez.no/Products/eZ-Platform-Enterprise-Edition

          Show
          Konrad Oboza added a comment - Dear Gábor Balogh! We are pleased to inform you, that v1.13.2 is already released. They fix for your issue is a part of it, so please perform an upgrade of your installation. As this ticket is technically solved and tested, it would be closed now. Please reopen it if you encounter any problems or have any questions regarding this topic. — Best regards, Konrad Oboza Product Support Engineer eZ Platform Enterprise Edition v2.1 is now available, Easier to Build a Solid Content Business http://ez.no/Products/eZ-Platform-Enterprise-Edition
          Hide
          Michał Szołtysek added a comment -

          QA Approved on eZ Platform v1.13.1.1 & eZ Platform EE v1.13.1 with patch.

          Show
          Michał Szołtysek added a comment - QA Approved on eZ Platform v1.13.1.1 & eZ Platform EE v1.13.1 with patch.
          Show
          Konrad Oboza added a comment - - edited PR: https://github.com/ezsystems/ezpublish-kernel/pull/2301 Merged: https://github.com/ezsystems/ezpublish-kernel/commit/7344524fbe60fa1c9e7d9b7baecb23d00b772866

            People

            • Assignee:
              Unassigned
              Reporter:
              Gábor Balogh
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: