Comments (10)
I've updated my local version and reverted the workaround. It seems that it's all good now. Closing here.
Thank you so much for the quick repsonse 🙏
from editorjs-undo.
Greetings @christoph-kluge.
Thanks a lot for raising this issue, I'll check if maybe a fix related with the drag'n drop plugin (kommitters/editorjs-drag-drop#83) fix this issue already, if not I'll give it a look to see how we can fix this
from editorjs-undo.
Ohh nice, thanks a lot for the update, I'll reopen the issue to keep working on a solution.
And again thanks a lot, I really appreciate it!
from editorjs-undo.
Hey @christoph-kluge, hope you're doing great!
There's up a new release (v2.0.3) where I tested the case you sent to us in the sandbox, and for me it seems to be working smoothly, please let us know if it fix the problem
Thanks for your time! Best regards
from editorjs-undo.
Hey @christoph-kluge, hope you doing well.
In the last release of the plugin (v2.0.2) there should be the solution for this issue, if it persists please let us know.
from editorjs-undo.
@MarthoxGT @juanhurtado10 I did a quick test and I'm still facing this issue.
"editorjs-drag-drop": "^1.1.2",
"editorjs-undo": "^2.0.2",
from editorjs-undo.
I was curious and created a sandbox scenario. It seems it is fixed as soon as I isolate the behavior in a sandbox.
https://codesandbox.io/s/editor-js-drag-and-drop-undo-xpnmk8
Will dig deeper to identify why it's failing in my project.
from editorjs-undo.
That'll help us a lot @christoph-kluge, thank you a lot for the time you're putting into.
Maybe deleting your node_modules folder and creating them again (if you haven't done it yet) could fix the issue in your local.
We are going to be attentive to your updates.
Mealwhile I'm going to try to replicate the issue with less ideal scenarios to see if I can find something.
Best regards.
from editorjs-undo.
@MarthoxGT thanks. Much appreaciated 👍
After giving it second try I finally found the isssue. It seems related to tools where the "id" property is set. Here is a sandbox where the behavior is broken:
https://codesandbox.io/s/editor-js-drag-and-drop-undo-broken-kdhen2
Hope this helps :-)
from editorjs-undo.
I could validate that it works with dynamic data as soon as I remove the id
property like this:
undo.initialize([...normalizedInput.blocks].map(block => {
if (block.hasOwnProperty('id')) {
delete block.id
}
return block
}));
I guess there's some magic or comparison related to the id
?
from editorjs-undo.
Related Issues (20)
- Add workflow for automatic publishing in npm
- Security Policy violation SECURITY.md HOT 3
- Undo is ignored, when Copy-paste 2-3 paragraph from Wikipedia HOT 1
- Undo does not work in document with initial data HOT 2
- TypeError: can't access property "type", t[i] is undefined in Next.js HOT 3
- undo redo not working for underline and change case and redo not working for hyperlink HOT 6
- Shortcuts are not supported on other keyboard layouts HOT 1
- Add shortcut for Cmd + Shift + Z to redo HOT 3
- Uncaught TypeError: Cannot read properties of undefined (reading 'holder') HOT 3
- Bug when editorjs has set 'paragraph: false' HOT 3
- Save request in read-mode when using multiple editors HOT 1
- Can't undo the deleted block HOT 3
- Undo event handler to trigger undo or redo without keyboard event. HOT 2
- Undo/Redo on German Keyboard Layout not working HOT 1
- Redo action HOT 1
- How do I use api to trigger actions HOT 1
- Undo operation malfunctions when there are line breaks HOT 1
- Can't find variable: regeneratorRuntime HOT 1
- Random bug when undoing HOT 7
- undo functionality doesn't work when splitting text by pressing enter HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorjs-undo.