-
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
Magicline plugin does not work correctly with widgets #5481
Comments
Proposed solution: add condition to filter out any rudimentary elements when looking for "edgeNode"
|
I'm not able to reproduce the issue – could you provide a demo? |
Try official demo: https://ckeditor.com/ckeditor-4/demo/ Remove the last paragraph, to make the bullet list (block element) to be the last one of the document. Then you need the magic line to add paragraph below it. If you hover mouse at the bottom of the document, you are fine, as long as the widget is not focused. If you focus the widget, the magic line trigger fails, at least at some vertical positions below the document. You are basically unable to click it. |
OK, I see the issue now – the magic line appears below the list but disappears the moment I hover it. |
Yes, you can say that. The line might appear for some vertical positions, but the rule "show the line at the very bottom of the document" is failing. Which is the one that shoud be effective when the line is hovered. |
Type of report
Bug
Provide detailed reproduction steps (if any)
Expected result
It is expected, when the mouse is moving below the last block element, that the magick line shows up and can be clicked.
Actual result
Moving mouse below the last block, the magic line diappears, making it unable to add new paragraph.
Analysis
The problem seems to be with the invisible element
which is added to the very end of DOM of the wysiwyg, when a widget is focused.
In triggerEditable, where edge case is handled (bottom edge of the document), the following branch fails:
in particular the
isFlowBreaker( edgeNode )
condition, because the said element is absolutely positioned.In general, the plugin should be resistant against such rudimentary elements that are often appended to the end of document, and should ignore them.
Workaround
The user must click to the area at the end of document, to defocus the widget. When he moves the mouse again, the magic line appears, magic!
Other details
The text was updated successfully, but these errors were encountered: