-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Drop inline object in text #16101
Comments
Anything? |
Hi! Could you provide some recording? I'm not sure if I understand. |
Screen.Recording.2024-04-04.at.13.54.21.movBasicaly in the recording I have three widgets two of them are inline the footnote and the Equation (Inline) and one of them is normal block widget Equation (block). When I try to drag and drop footnote which is empty inline widget it is working as expected. Drop zone is correctly triggered in text. When I try to drag and drop Inline Equation it does not work properly it does not let me drop in text, only next to other inline widgets. Inline Equation is widget which is not empty and looks like this in model
|
any news? |
Do you know how to resolve this? |
Bump |
The problem here is in this check: ckeditor5/packages/ckeditor5-clipboard/src/dragdroptarget.ts Lines 393 to 395 in 7f0da84
It should check only top-level items and ignore all nested ones. |
Fix (clipboard): An in-text drop of an inline object with elements inside should be possible. Closes #16101.
📝 Ask a question
I created a custom inline object that inherits all from inlineObject that contain one other element.
<inline><foo></foo></inline>
This custom can not be dropped into text. The drop target position never lands to #text. The only way to insert it inside the text is to place it next to another inline object - this way, the drop target caret shows. Is there some configuration or method to force showing drop target inside text?
I was curious, and if inlineObject does not contain anything, then the drop target position works as expected.
The text was updated successfully, but these errors were encountered: