-
Notifications
You must be signed in to change notification settings - Fork 77
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
ckeditor5-vue is not working with html5 Drag and Drop api in Safari #185
Comments
I encountered the same problem using ckeditor5 into a vue component, the component itself was draggable. I could write into the editor, move the cursor using arrow keys. But I could not click inside the editor or select text. I was using Firefox Nightly, version of 9 June 2021. Removing the draggable behaviour (removing the |
@julienfastre Hey! It is true that removing the Solution:
|
Thank you. I will test this solution in a couple of weeks (not necessary for today). |
📝 Provide detailed reproduction steps (if any)
Make a list with draggable items using https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API
Wrap ckeditor5 inside one of the draggable item.
Try typing in ckeditor5 (notice no cursor appearing in textarea). We are not able to edit any content inside the ckeditor field.
✔️ Expected result
What is the expected result of the above steps?
-- ckeditor5 should be working fine and cursor should appear inside textarea and we should be able to edit the content inside it.
❌ Actual result
What is the actual result of the above steps?
-- No cursor is appearing inside textarea, hence cannot edit the content of ckeditor5-vue field.
📃 Other details
-- While researching and testing we concluded after removing this below mentioned CSS and draggable="true" from this code, ckeditor5-vue starts working like it's default behaviour.
Browser: safari
OS: macOS
First affected CKEditor version: ckeditor5-vue2(1.0.5)
Installed CKEditor plugins: ckeditor5-build-classic
Sample Code
<ul id="components-list"> <li draggable="true" @dragstart='startDrag($event, idx)' @drop='onDrop($event, idx)'> <component></component> </li> <li draggable="true" @dragstart='startDrag($event, idx)' @drop='onDrop($event, idx)'> <ckeditor :editor="editor" :config="editorConfig"></ckeditor></li></ul>
CSS
ul#components-list li { -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none; -khtml-user-drag: element; -webkit-user-drag: element; }
Urgent help needed.
The text was updated successfully, but these errors were encountered: