Closed CatHood0 closed 2 months ago
what are you waiting for?
@singerdmx sorry, I've been busy. I uploaded the PR to then start showing the changes but things have not turned out as I expected. I'll start fixing some other things this PR does to finish these changes.
Description
Block Attributes issue
Also fixed an issue with block attributes not being visible when the
Document
was empty. In addition to this, added the ability for the editor to display block attributes next to the placeholder (the attribute) so that the user can see how their text will look even if the entireDocument
is empty.Before:
https://github.com/user-attachments/assets/3109fdf6-1445-4731-91bf-56715783e98e
After:
https://github.com/user-attachments/assets/47555b95-1c2c-4f1e-9acc-c6e45e38a1eb
Delta diff issue
Fixed some issues with trying to constantly select or move to a position that doesn't exist. This was because
delta_diff
previously didn't reliably check the difference between 2 Deltas. Now added some checks (not perfect) which avoid these issues.How it works now:
https://github.com/user-attachments/assets/85ba9da7-bd2b-4cf2-9173-cf166d96819d
However, I'll keep an eye out for different scenarios that could cause
delta_diff
to fail (I'm not doing it in this PR as I'm already doing 2 PRs in one due to time constraints).Related Issues
Fix #2209
Fix #2159
[x] โจ New feature: Adds new functionality without breaking existing features.
[x] ๐ ๏ธ Bug fix: Resolves an issue without altering current behavior.
[ ] ๐งน Code refactor: Code restructuring that does not affect behavior.
[ ] โ Breaking change: Alters existing functionality and requires updates.
[ ] ๐งช Tests: Adds new tests or modifies existing tests.
[ ] ๐ Documentation: Updates or additions to documentation.
[ ] ๐๏ธ Chore: Routine tasks, or maintenance.
[ ] โ Build configuration change: Changes to build or deploy processes.