Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
Contributor

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
Contributor

@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