-
Notifications
You must be signed in to change notification settings - Fork 210
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
Cell corruption when deleting block contents #43
Comments
Thanks for the report! Note: |
As I analyzed the issue, the bug doesn't occur when deleting the first block, but it arises when attempting to delete the second block. The reason it doesn't happen when deleting the first block is that 'block.js' contains a function called preventFirstBlockFromBeingDeleted that prevents this bug. If my understanding is correct, should we extend this solution to the remaining blocks or concentrate on improving how the editor handles Ctrl+Shift+K in keymaps? @heyman, could you please guide me on resolving this issue? |
Hey, saw your description of the problem a few days before and tried to implement your other solution as well. Didnt see you already had solved it lol. #118 |
Codemirror binds I think the proper solution is to implement a custom |
hmm, @Maran1947 maybe adjust your commit then...? Since it's the closest to the desired solution, i think it would be easier that way. |
#134 |
As far as I can tell, #134 deletes a whole block and is not a block-aware equivalent to the |
I've updated PR #134. I checked CodeMirror's deleteLine implementation and added a condition to fix the problem. Could you please check if this is correct or suggest any improvements? |
Selecting the contents of an entire block and pressing
CTRL + SHIFT + K
(on windows) causes the block separator and language type (e.g.∞∞∞markdown
) to become text inside the next block and the next block's type becomes the previous block's type. See the following video:heynote.2023-12-23.12-00-31.mp4
The text was updated successfully, but these errors were encountered: