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

Unable to get the width of a table pasted from Excel

    Details

    • Sprint:
      Castor UI S1

      Description

      When copying and pasting content from Excel to Online Editor, a table is automatically created in our content object, and the width of columns is kept, which is correct.

      If we try to edit the properties of a table cell we can see the current width.

      But if we try to edit the table properties the table width is zero (0).
      This behavior is wrong.

      After publishing our content object, if we edit it again, and try to edit the properties of the table element we can see the correct width.


      Steps to reproduce

      1. Copy multiple cells from Excel
      2. Paste the copied content into eZOE. A table will be created
      3. Click on the table, and edit the properties of the table element
      4. Notice that the width of the table is "0"

      This only happens before publishing.

      1. Example.xlsx
        10 kB
        Ricardo Correia

        Activity

        Show
        Damien Pobel (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-legacy/pull/995
        Show
        Damien Pobel (Inactive) added a comment - Fixed in ezpublish-legacy: master: http://github.com/ezsystems/ezpublish-legacy/commit/b1758a8a176e6fb1efda4de08cdd7b33c193f578
        Hide
        Paulo Nunes (Inactive) added a comment -

        QA Approved

        Tested on 5.1, 5.2 and master
        Tested using IE10 and IE11

        Note that the scope of the issue and of the approval is the "table" width, not the "table cell" width.

        Show
        Paulo Nunes (Inactive) added a comment - QA Approved Tested on 5.1, 5.2 and master Tested using IE10 and IE11 Note that the scope of the issue and of the approval is the "table" width, not the "table cell" width.
        Hide
        Paulo Nunes (Inactive) added a comment -

        When verifying the "table cell", on the first row cells the width is ok. It's =0 on all the other cells, but i guess it's ok as well, since the width is given by the information on the first row.
        Example:

        <table border="0" width="217px">
          <tr>
            <td width="130" align="right">1</td>
            <td width="62" align="right">2</td>
            <td width="25" align="right">3</td>
          </tr>
          <tr>
            <td align="right">4</td>
            <td align="right">5</td>
            <td align="right">6</td>
          </tr>
          <tr>
            <td align="right">7</td>
            <td align="right">8</td>
            <td align="right">9</td>
          </tr>
        </table>

        Show
        Paulo Nunes (Inactive) added a comment - When verifying the "table cell", on the first row cells the width is ok. It's =0 on all the other cells, but i guess it's ok as well, since the width is given by the information on the first row. Example: <table border="0" width="217px"> <tr> <td width="130" align="right">1</td> <td width="62" align="right">2</td> <td width="25" align="right">3</td> </tr> <tr> <td align="right">4</td> <td align="right">5</td> <td align="right">6</td> </tr> <tr> <td align="right">7</td> <td align="right">8</td> <td align="right">9</td> </tr> </table>
        Hide
        Damien Pobel (Inactive) added a comment -

        Paulo: yes that's OK (note that the issue was about the table width, not the table cell width)

        Show
        Damien Pobel (Inactive) added a comment - Paulo: yes that's OK (note that the issue was about the table width, not the table cell width)

          People

          • Assignee:
            Unassigned
            Reporter:
            Ricardo Correia (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile