Opened 13 years ago
Closed 11 years ago
#7910 closed Bug (fixed)
If forcePasteAsPlainText paste (ctrl + v) doesn't work properly in webkit env
Reported by: | alan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6 |
Keywords: | Webkit | Cc: |
Description
I'm working with forcePasteAsPlainText = true and when i paste something using ctrl + v in webkit env (chrome, safari...) and wysiwyg mode i got the same text repeated several times. I checked in the code and i found each time you use the function setData ( e.g. editor.setData('aorduno') ) in wysiwyg plugin you will recreate the iframe. So, for each time i recreate the iframe i got the text pasted once.
If i use two times editor.setData('myData') i recreate the iframe two times and then if i want to paste 'aorduno' using (ctrl + v) i got 'aordunoaorduno' as result. This is working alright in other browsers (ff, ie, opera) the only browsers i got this repeated text pasted are from webkit.
Change History (2)
comment:1 Changed 13 years ago by
Keywords: | Webkit added |
---|---|
Status: | new → confirmed |
Version: | → 3.6 |
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
I wasn't able to reproduce this in CKEditor 4.x.
1.On replacebycode.html paste:
This has always worked in safari and sometimes in Chrome (don't know why)
I could reproduce it only in CKEditor 3.6 and only when I used the code on a page. When I tried to execute it in Chrome or Safari console the text was not doubled.