Skip to content

Conversation

@aryan7081
Copy link
Contributor

@aryan7081 aryan7081 commented Jan 26, 2026

Fixes #7814

Previously, the deletion relied on native browser behaviour, which caused different results depending on the browser. This change performs the deletion via Slate APIs, ensuring predictable and browser-independent behaviour.

Currently, the deletion uses unit: "word", which matches the common expectation. This can be adjusted if a different behaviour is preferred. (e.g., line-based deletion). This follows the same approach already used in existing Slate editor extensions (e.g. breakListInWidget) to ensure consistent editor behaviour.

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.

Command + backspace behaviour currently depends on the native browser delete behaviour.

1 participant