Content pasted into the online editor won't save

Author Message

Graham Tillotson

Monday 05 May 2008 9:08:58 am

I recently upgraded a site to eZ Publish 4, and I'm seeing some strange behavior with the Online Editor (OE). In XML Block fields, I can type content in and the content will be saved, but when I copy and paste in from another document (DOC file, web page, etc.) the content is not saved.

Has anyone else run into this problem? I've tested it on Mac (Firefox) and Windows (Firefox, IE 7) and the results are the same. There are no entries in the error log that are related to the online editor.

Thanks much!
Graham

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

Graham Tillotson

Monday 05 May 2008 10:40:42 am

I think I'm answering my own question here . . .

I got the message below and then realized my database collation was latin, not UTF8:

DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Input is not proper UTF-8, indicate encoding !
Bytes: 0x92 0x73 0x20 0x74 in Entity, line: 2 in /home/north32/public_html/cms/extension/ezdhtml/ezxmltext/handlers/input/ezdhtmlxmlinput.php on line 445

I'm sure this is at the heart of it and will post an update when I get it all sorted out.

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

Graham Tillotson

Monday 05 May 2008 10:42:49 am

Sure enough. Just changed the collation on the tables to UTF8 and all is well in the world.

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

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 15:51:27
Script start
Timing: Jan 18 2025 15:51:27
Module start 'layout'
Timing: Jan 18 2025 15:51:27
Module start 'content'
Timing: Jan 18 2025 15:51:28
Module end 'content'
Timing: Jan 18 2025 15:51:28
Script end

Main resources:

Total runtime0.8149 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.0391152.6406
Module start 'layout' 0.00460.0036 740.679739.4766
Module start 'content' 0.00810.8055 780.1563498.1953
Module end 'content' 0.81360.0012 1,278.351612.1250
Script end 0.8149  1,290.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3888160.0002
Check MTime0.00140.1680160.0001
Mysql Total
Database connection0.00050.066610.0005
Mysqli_queries0.766394.0421550.0139
Looping result0.00050.0556530.0000
Template Total0.782496.020.3912
Template load0.00230.277720.0011
Template processing0.780195.729420.3900
Template load and register function0.00020.020510.0002
states
state_id_array0.00150.179910.0015
state_identifier_array0.00070.080420.0003
Override
Cache load0.00190.2318170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072510.0006
Fetch class attribute name0.00140.167940.0003
XML
Image XML parsing0.00300.370210.0030
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00330.4054160.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs