Skip to content

Comments

Fix: Unable to Delete List items (ordered and unordered)#96

Open
donnfelker wants to merge 1 commit intoeditor-js:masterfrom
donnfelker:master
Open

Fix: Unable to Delete List items (ordered and unordered)#96
donnfelker wants to merge 1 commit intoeditor-js:masterfrom
donnfelker:master

Conversation

@donnfelker
Copy link

@donnfelker donnfelker commented Apr 14, 2024

This includes the fix from #95 as well as an additional fix to re-attach the listeners after the element.replaceWith was invoked.

The backspace update from #95 worked, but the event listeners are lost when the toggleTune is invoked. This
PR adds the listeners back after the tune is invoked.

The listeners are lost because replaceWith does not propagate the existing listeners to the new element.

Also related to #90

The backspace update from editor-js#95 worked, but the event listeners
are lost when the toggleTune is invoked. This
PR adds the listeners back after the tune is invoked.

The listeners are lost because replaceWith does not
propogate the existing listeners to the new element.
@donnfelker
Copy link
Author

donnfelker commented Apr 14, 2024

Other devs: See #90 for a code snippet you can use to fix it locally until this is merged.

@mve
Copy link

mve commented Jul 1, 2024

Just tested it and it seems to work! Could one of the contributors take a look at this?

@Sozialarchiv
Copy link

I tested it too. It seems to work. I think this is a very important fix for this plugin. Could one of the contributors take a look at this? Thanks a lot.

@Sozialarchiv
Copy link

@neSpecc How does it work with the versioning? Does every pull request need a version in package.json? If yes then here it is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants