-
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
UploadImage Plugin Widgets not working in IE, Opera, Safari, PhantomJS #641
Comments
Hi, I'm not able to reproduce problematic situation. I test it on Safari on MacOS with this code: https://codepen.io/anon/pen/JJxNeE?editors=1010. I use image widget to insert picture to editor. And I'm able to resize it properly. |
Sry I messed up my notes before writing the issue: resizing and moving is not a problem. The problem was inserting images via Drag&Drop and from paste content (base64). I will give codepen a try to generate a reproducible example. |
Don't worry ;) I wait for further description then. |
Checked #643 but this is something more delicate. As promised a codepen simulating the problem of missing The test simulates pasting HTML content with a base64 encoded image into the editor. |
Thank you for the example it allowed to reproduce the issue. |
Closed with: #4666 |
Are you reporting a feature or a bug?
Bug
Check if the issue is already reported
None found
Provide detailed reproduction steps (if any)
id="introduction,first"
, valid in HTML 5 https://www.w3.org/TR/html5/dom.html#the-id-attribute).Reproduction steps in CKEditor test:
/tests/plugins/uploadwidget/manual/image.md
on Safari or other mentioned browser./tests/plugins/uploadwidget/manual/__template__.html
with followed things:textarea
intodiv
and addcontenteditbale="true"
id
toedito,r1
(something with comma)CKEDITOR.replace
intoCKEDITOR.inline
, add in configextraPlugin: floatingspace
, modifyname
toedito,r1
.CSS.escape
. Before initializing of editor in point 2 addCSS.escape = undefiend
Expected result
Image is uploaded and inserted into editor.
Actual result
Image is uploaded but not inserted into editor.
Other details
Deeper analysis
The reason is the usage of the experimental window.CSS.escape feature (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape) that is used to generate CSS selectors to identify CKEditor Widgets. You might enhance the alternative escaping in CKEDITOR.tools.escapeCSS` to also escape commas.
The text was updated successfully, but these errors were encountered: