mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 18:24:03 +02:00
Android input handing rewrite (#4988)
* wip * wip * wip - fully working without hard marks * fix editor crashes when inserting/deleting at the edges of marks * fix various restore dom related crashes * fix delete with pending changes, zero widths on android, mutation tracking * track placeholder delete in detached strings, zero-widths * wip mark placeholders * get rid of mutation detection in favor of beforeinput * fix various selection race conditions * fix various crashes when deleting at the beginning of nodes * wip diff transforms, selection handling fixes * cleanup restoreDOM and fix noop restore edge-case * fix mark placeholders * fix toSlatePoint edge-case * properly flush user select with pending changes * Prevent editor crash when deleting before a non-contenteditable element * wip markdown shortcut example * transform pending changes and selection by remote changes, simplify pending actions, handle all input types * improve change transform, mark(-placeholder) handling * manually handle gboard bug, fix restoredom nested editor * fix parent mutation condition * cleanup, mark placeholder fixes * mark placeholder fixes * fix mark placeholder condition * hide placeholder if we have pending diffs * cleanup * yarn install * add workaround for swiftkey placeholder issue * cleanup * add changeset * feat(slate-react): fix edge-case crash, add androidPendingDiffs, rename scheduleFlushPendingChanges * flush pending selection on same line without pending changes/action * keep formatting of pending diffs when adding/removing selection marks * unref selection ref on unmatching dom state * improve markdown shortcut example flush trigger to show how a more generic solution would work * fix markdown shortcut example trigger logic * fix isInsertAfterMarkPlaceholder logic
This commit is contained in:
6
.changeset/fresh-taxis-itch.md
Normal file
6
.changeset/fresh-taxis-itch.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'slate-react': minor
|
||||
'slate': patch
|
||||
---
|
||||
|
||||
Android input handling rewrite, replace composition insert prefixes with decoration based mark placeholders
|
Reference in New Issue
Block a user