Forums / Extensions / Paste in ezoe - formatted text sometimes "stick" words?

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

eZ debug

Timing: Jan 17 2025 22:56:09
Script start
Timing: Jan 17 2025 22:56:09
Module start 'content'
Timing: Jan 17 2025 22:56:10
Module end 'content'
Timing: Jan 17 2025 22:56:10
Script end

Main resources:

Total runtime0.9112 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.8594180.8125
Module start 'content' 0.00550.7696 768.6719542.6094
Module end 'content' 0.77510.1360 1,311.2813336.8984
Script end 0.9111  1,648.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4403210.0002
Check MTime0.00150.1697210.0001
Mysql Total
Database connection0.00060.071310.0006
Mysqli_queries0.846392.88291940.0044
Looping result0.00170.18531920.0000
Template Total0.869095.420.4345
Template load0.00200.223020.0010
Template processing0.867095.147820.4335
Template load and register function0.00020.027010.0002
states
state_id_array0.00070.075710.0007
state_identifier_array0.00090.100520.0005
Override
Cache load0.00170.1842150.0001
Sytem overhead
Fetch class attribute can translate value0.00130.145530.0004
Fetch class attribute name0.00120.127240.0003
XML
Image XML parsing0.00080.087630.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00630.6905280.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs