editor-js / list

Advanced List tool for the Editor.js.
MIT License
48 stars 47 forks source link

Enter behaviour has bug with HTML tags at the end #35

Open agat opened 2 years ago

agat commented 2 years ago

Expected behaviour: If cursor located at the end of list item with link or another HTML tag, hitting Enter, empty new item are created.

 * List item with a <a href="#">link at end</a>| <- Cursor here...

After Enter hitting...

 * List item with a <a href="#">link at end</a>
 * |

New empty list item created.

Actual behaviour: Hitting Enter new list item are created with an empty tag at the end.

 * List item with a <a href="#">link at end</a>
 * | <a href="#"></a>

New list item with the empty tag at the end are created.

benlammers commented 2 years ago

+1

ZRogerson commented 1 year ago

Any movement on this or did anyone find a workaround?