Bug #4372

paste large text in Opera throws exception

Submitted:
2011-05-07 01:00:43 By: trpn
Browsers:
opera opera
Open Priority: 3 Resolution: None Assigned to: None
Description of problem:
When pasting large amounts of text in opera an exception is thrown and the user can no longer use tinymce (it is no longer focusable).

This is happening on Opera 11.10 and tinymce 3.4.2

Steps to reproduce:
1. Copy a website (press ctrl-a to select all on http://www.my-debugbar.com/wiki/IETester/HomePage for example)
2. Paste it into tinymce on http://tinymce.moxiecode.com/tryit/full.php
3. repeat paste if not reproducible on the first try
4.
5.

Expected result:
tinymce pastes the content and continues to work

Actual result:
tinymce pastes the content but then is no longer usable. The user cannot select the input to type or make changes.

Opera throws error:
http://tinymce.moxiecode.com/tryit/full.php
Uncaught exception: [object DOMException]

Error thrown at line 1, column 172218 in <anonymous function: setRng>(i) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
g.selectedRange=h.getRangeAt(0)
called from line 1, column 320221 in <anonymous function: mceInsertContent>(z, D, E) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
p.setRng(u);
called from line 1, column 314210 in q(y, x, v) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
u(y,x,v);
called from line 1, column 291343 in <anonymous function: execCommand>(x, v, z, p) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
if(r.editorCommands.execCommand(x,v,z))
called from line 223, column 157284 in <anonymous function: _insert>(f, d) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
e.execCommand("mceInsertContent",false,f,{skip_undo:d})
called from line 223, column 137794 in h(m, k) in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
f._insert(m.content)
called from line 223, column 142693 in <anonymous function: init>() in http://tinymce.moxiecode.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&themes=advanced&languages=en&diskcache=true&src=false:
h({content:u});

 

If you wish to follow or post a comment, you need to be registered and logged in.

Comments

User Image
  • 2011-07-22 06:15:08

XP1

Duplicate.

See this bug:
http://tinymce.moxiecode.com/develop/bugtracker_view.php?id=4306