Magicline plugin does not work correctly with widgets #5481
Labels
plugin:magicline
The plugin which probably causes the issue.
status:confirmed
An issue confirmed by the development team.
type:bug
A bug.
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: