-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image pasted twice when copy from browsers #4924
Comments
It could be caused by #4874. Could you disable all custom plugins for inserting/pasting images ( Issue can be also caused by the fact that you use more than one plugin to handle image pasting. |
I will try and then will write about the result |
If disable CKEDITOR.replace( 'editor', { // Allow 3rd party plugins to handle image pasting clipboard_handleImagePasting: false, extraPlugins: "customImagePasteHandlerPlugin" } ); |
You can download the nightly version to check if the issue is resolved. From the code you mentioned above you need only |
I have downloaded the nightly version ( |
Have you added |
Yes, it works, thanks, very helpful |
Ok, so I'm closing it as a duplicate of #4874. Please note that the fix will be officially released in 4.17.0, the nightly version is still experimental. |
@Comandeer, hi, i have downloaded the |
Could you provide some demo of the issue? |
Of course, you can view at this link: https://drive.google.com/file/d/1eFJhPFD2TLHIVxQAAt2egeZ3gIGTtb4c/view The custom build archive is available at: https://ckeditor.com/cke4/builder/download/47dd77c081dd00b601b21dbc4acf395e |
@easygolabs, sorry for the delayed response. After quick debugging it seems that the issue is connected with |
@Comandeer right, is this issue could be confirmed and there will be one more fix? Or the reason of this is incorrect use of plugins and it needs to avoid using |
It's an issue with a third-party plugin, |
Type of report
Bug
Provide detailed reproduction steps (if any)
The investigation of the browsers behavior showed that the different browsers insert images in different ways. The picture was inserted twice or once (randomly) : it is not clear why the one picture was inserted once and the other twice. So, solved the problem for one browser, can be created to another. Any ideas how it should be solved based on the investigation on the screenshot?
1 - if comment the line
d.insertElement(b)
inckeditor/ckeditor.js
->function h(a, d)
2 - without changes
Expected result
It should be pasted just once.
Actual result
Pasted twice
Other details
Chrome
Firefox
Edge
Explorer
Windows 10 Pro
20H2
19042.1266
4.14.1
a11yhelp
,about
,autocomplete
,autolink
,base64image
,ckwebspeech
,clipboard
,colordialog
,dialog
,div
,fakeobjects
,find
,flash
,forms
,iframe
,image
,insertimage
,link
,lifestyle
,magicline
,pagebreak
,pastebase64
,pastefromword
,pastetools
,preview
,scayt
,setstyle
,showblocks
,smiley
,specialchar
,table
,tabletools
,templates
,textmatch
,wsc
The text was updated successfully, but these errors were encountered: