Fix the table cell arrow race and remove the TipTap Writer
Phase 4a. The ProseMirror focus handler starts a 20 ms timer that writes the ProseMirror selection back to the DOM. Under load, the timer ran after a native arrow move and before ProseMirror read the selectionchange event, so one move was lost. The cell editor now moves the DOM selection with Selection.modify and reads the result in the same key event. This covers plain and Shift arrows and word moves. Other shortcuts stay with the browser. - Workbench.svelte no longer filters access events. Rust already drops them. - Delete the unused TipTap Writer: WriterHost.svelte, writerMenu.ts, writerMarks.ts, headingMarks.ts, and their two unit tests. - Remove the 8 TipTap packages that only the Writer used, and its entry in docs/menu-surfaces.json. With a 4x CPU slowdown, 11 of 60 runs failed before the fix and 0 of 120 after it. pnpm check, pnpm test, and the smoke suite pass.
This commit is contained in:
@@ -80,13 +80,6 @@
|
||||
"design": "Shared action menu",
|
||||
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
|
||||
},
|
||||
"RuneStone/src/lib/editor/WriterHost.svelte": {
|
||||
"counts": {
|
||||
"svelteMenu": 1
|
||||
},
|
||||
"design": "Shared action menu",
|
||||
"check": "tests/smoke/menus/consistency.smoke.mjs; tests/smoke/links/linkEditing.smoke.mjs; tests/smoke/editor/surfaces.smoke.mjs"
|
||||
},
|
||||
"RuneStone/src/lib/layout/ContextMenu.svelte": {
|
||||
"counts": {
|
||||
"action": 1
|
||||
|
||||
Reference in New Issue
Block a user