Online Editor 4.2 and apostrophes in IE

Author Message

Mike Melli

Monday 05 February 2007 1:56:29 pm

Hello -

We are working with eZpublish 3.9 and the Online Editor version 4.2 and have noticed a strange issue that I have attempted to troubleshoot with no success.

This issue happens with Internet Explorer 6.0. It does not happen in Firefox and has not been tested in other versions of IE.

The issue happens as such:

Edit an object with an XML Block attribute and include a single quote/apostrophe in that field. For instance, any word such as "can't" or "won't" which includes an apostrophe.

When that object is published the first time, it is displayed correctly and saved to the database with the apostrophe character converted to '.

Edit the same object again and the contents of the XML field will look something like "can't". This is where I have determined the issue to be taking place. The parser which is showing the contents of the XML block in the Online Editor has now converted the text to ' and Internet explorer has not successfully translated this into a single quote character (I believe IE does not recognize ' as valid). Testing this in an older version of eZ (3.8.4) and the Online Editor (4.1.2) has shown that this correctly displays as a single quote character. So something changed in the newer versions which is keeping IE from translating the character at this step.

Publish the article and find that the database now says ' instead of just '.

Edit the same object again and now these have been translated to ' (found the code that does this in \ezxmltext\handlers\input\ezdhtmlxmlinput.php, line 812).

Publish the article again and find that the database now says ' again and the page displays correctly once again. Then the cycle repeats with further edits.

I have searched through a lot of code and the forum on ez.no and have found nothing that helps. No one seems to have experienced this issue yet, but it seems like a fairly large one to me since it is keeping us from using any single quotes in any XML Block content areas of the site. Swapping the online editor for version 4.1.2 seems to fix the issue, but I'm not sure what kind of functionality we'll be losing as a result.

I believe the fix to this would be to change all eZpublish code to use ' instead of ', since the latter is not valid in IE. However, I don't want to go mucking with the kernel myself.

Any help would be much appreciated.

Paul Borgermans

Monday 05 February 2007 2:22:43 pm

This is a known (and solved if don't mind downloading the OE from svn):

http://zev.ez.no/log.php?repname=extensions&path=%2Fezdhtml%2F&rev=0&sc=0&isdir=1

There are other nasty IE bugs solved in the trunk, try for instance to make/insert superscript/subscript in your current installed version

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Kristof Coomans

Monday 05 February 2007 11:03:56 pm

Just as a reference: http://issues.ez.no/9968

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:27:46
Script start
Timing: Jan 18 2025 22:27:46
Module start 'layout'
Timing: Jan 18 2025 22:27:46
Module start 'content'
Timing: Jan 18 2025 22:27:46
Module end 'content'
Timing: Jan 18 2025 22:27:46
Script end

Main resources:

Total runtime0.0116 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.1406152.6250
Module start 'layout' 0.00410.0020 741.765639.4453
Module start 'content' 0.00610.0038 781.210993.2109
Module end 'content' 0.00990.0017 874.421934.3047
Script end 0.0116  908.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002118.2239140.0002
Check MTime0.00108.1976140.0001
Mysql Total
Database connection0.00054.494810.0005
Mysqli_queries0.001815.901430.0006
Looping result0.00000.067910.0000
Template Total0.001411.910.0014
Template load0.00086.574510.0008
Template processing0.00065.340210.0006
Override
Cache load0.00064.840410.0006
General
dbfile0.00022.106580.0000
String conversion0.00000.032940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs