html-editor-enhanced
html-editor-enhanced copied to clipboard
[BUG] Link action for edit doesn't work in some cases
I tried to add a new link via controllers insertLink method providing a regular name and a url value of "www.google.com". This was done right after the initalization and it properly worked with inserting the link and underlining it as it should, but once clicked the link provides an option to edit it. If clicked nothing happens but if I insert atleast one link via toolbars "insert link" option this feature works properly on all consequently inserted links.
Also I get this error when I try to click on generated link that can't be edited:
I/flutter (10773): Uncaught TypeError: Cannot read properties of null (reading 'nextSibling')
To Reproduce Steps to reproduce the behavior:
- Initialize HtmlEditor widget
- Insert the link via editor's controller, insertLink method with parameters: insertLink("Google", "www.google.com", false)
- Click on the link and click on the first option in the tooltip to edit the newly added link
- Nothing happens
- Go to toolbar and select "insert link" option and provide the same values manually as the ones for the first link
- Link is added and once you repeat the step 3 for the second link, everything works fine
Expected behavior Edit link option should work fine on the first try