Paste in ezoe - formatted text sometimes "stick" words?

Author Message

Denitsa M.

Friday 12 February 2010 9:12:35 am

Hi,

recently we came upon a bug in ezoe due to a certain text formatting when pasting text into content. It seems when a certain format is already applied to the text, after paste with mouse-paste or ctrl+v(cmd+v) and publish of object some of the words concatenate to a word infront or behind. Text is for example copied from some random web page in the net. This happens only with some text, and with other no - so it should be a question of corrupted formatting probably, furthermore I tested the same text conventional paste (mouse/kbd) after put it through simple text editor (copy from page into editor, then copy from text editor into ezoe) and the result content is correct.

However, i noticed that if i get the same web text with corrupted formatting and paste into ezoe using the PASTE BUTTON instead of mause-paste/ctrl+v/cmd+v, the text is completely correct after publish, and no "molding" is done between words.

Why there are differences in parsing text when using button to paste, and when pasting with the more common ways (kbd/mouse)? I know that it is a bit frustrating to have in mind the content client put into OE, but it is odd that we should use button in order to make sure for correct content, and be forbidden to use simple ctrl+v for example.

Deni

Iguana IT - http://www.iguanait.com

André R.

Monday 15 February 2010 1:44:49 am

This is "TinyMCE issue". It is slightly better with newer versions (so are you using 5.0.4?), but there are lots of issues with WSIWG editors since they need to cleanup garbage formating from external sources like MS Word for instance. As for the CTRL+V vs paste dialog, thats because of a issue in Gecko (Firefox), as it does not fire any event for the editor to listen to on keyboard / mouse paste.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Denitsa M.

Tuesday 16 February 2010 8:41:16 am

Hi,

Andre, thanks for your reply and sorry for delayed answer. The strange thing is I have already tested this with the original TinyMCE at their homepage with the demo they have - the same text is parsed absolutely correctly. Also, I have in usage TinyMCE implemented into a standalone extension for xmlblock datatype, and the paste there is also correct with the same text.

Deni

Iguana IT - http://www.iguanait.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 00:58:25
Script start
Timing: Jan 18 2025 00:58:25
Module start 'layout'
Timing: Jan 18 2025 00:58:25
Module start 'content'
Timing: Jan 18 2025 00:58:26
Module end 'content'
Timing: Jan 18 2025 00:58:26
Script end

Main resources:

Total runtime0.7888 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0625152.6406
Module start 'layout' 0.00510.0031 740.703139.4766
Module start 'content' 0.00820.7790 780.1797537.5156
Module end 'content' 0.78720.0015 1,317.695312.2813
Script end 0.7887  1,329.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4167160.0002
Check MTime0.00140.1720160.0001
Mysql Total
Database connection0.00080.097010.0008
Mysqli_queries0.742694.1449570.0130
Looping result0.00060.0729550.0000
Template Total0.760196.420.3801
Template load0.00210.267020.0011
Template processing0.758096.098820.3790
Template load and register function0.00070.093410.0007
states
state_id_array0.00110.137310.0011
state_identifier_array0.00130.159020.0006
Override
Cache load0.00170.2137150.0001
Sytem overhead
Fetch class attribute can translate value0.00090.112820.0004
Fetch class attribute name0.00100.129540.0003
XML
Image XML parsing0.00070.084220.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00130.1693170.0001
String conversion0.00000.001140.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs