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

Copy & paste with chrome insert non break space

    Details

      Description

      I'm unsure if this should be regarded as a bug on eZOE, or if we could implement an enhancement to account for a bug in Chrome and / or tinyMCE stack.

      steps to reproduce
      • Using chrome, in an eZ Publish 5.1 admin portal, edit or create a new article object
      • In the Body field enter some text, select it, copy to clipboard, go to end of line, enter a space, paste, enter another space, paste again, publish
      • View the article (either in front end or back end), inspect the text element.
        . You'll verify that the spaces between the pasted text have been replaced by non breakable spaces "& nbsp ;"

      This could only be reproduced with chrome and seems to be related to this tinyMCE bug report.

      The ill effect of this behavior is that editors won't notice that the XML saved has the special characters until some layout in the front end breaks, due to the non breakable spacing used.

      I've compared the contents stored in MySQL ezcontentobject_attribute using chrome and firefox.
      At a first glance, data_text seems the same.
      But, if you select a different codepage (set names cp1250, for instance) instead of the default and expected utf8, you'll verify that chrome is adding some unexpected character to the content, right where the non breaking spaces show up

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          8m 28s 1 joaquim.cavalleri@ez.no 05/Nov/13 7:02 PM
          Confirmed Confirmed InputQ InputQ
          14h 19m 1 Gunnstein Lye 06/Nov/13 9:21 AM
          InputQ InputQ Development Development
          2d 1h 35m 1 damien.pobel@ez.no 08/Nov/13 10:57 AM
          Development Development Documentation Review done Documentation Review done
          10d 6h 58m 1 damien.pobel@ez.no 18/Nov/13 5:55 PM
          Documentation Review done Documentation Review done QA QA
          17h 32m 1 Joao Pingo (Inactive) 19/Nov/13 11:27 AM
          QA QA Closed Closed
          5h 34m 1 Joao Pingo (Inactive) 19/Nov/13 5:02 PM
          Closed Closed Reopened Reopened
          56m 15s 1 Joao Pingo (Inactive) 19/Nov/13 5:59 PM
          Reopened Reopened Closed Closed
          0s 1 Joao Pingo (Inactive) 19/Nov/13 5:59 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Joaquim Cavalleri (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 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 - 2 days, 2 hours
                2d 2h