mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: place cursor at start of inserted table row/column (#12610)
* fix: place cursor at start of inserted table row/column When using Insert before for a table row or column, the selection was collapsed onto the mapped previous selection — landing at the bottom of the shifted neighbouring column rather than in the newly inserted cell. Move the cursor to the start of the first cell of the inserted row/column instead. * feat: Inline editor menu (#12611) * wip * Mobile support * Address review feedback on inline menu - Mark selection-restore transaction as not added to history - Only open desktop inline menu when an anchor is available Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> * fix: place cursor at start of inserted table row/column When using Insert before for a table row or column, the selection was collapsed onto the mapped previous selection — landing at the bottom of the shifted neighbouring column rather than in the newly inserted cell. Move the cursor to the start of the first cell of the inserted row/column instead. * Add handling for After variants Add lint rule --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -73,6 +73,23 @@
|
||||
"eqeqeq": "error",
|
||||
"curly": "error",
|
||||
"no-console": "error",
|
||||
"no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
"paths": [
|
||||
{
|
||||
"name": "prosemirror-tables",
|
||||
"importNames": [
|
||||
"addRowBefore",
|
||||
"addRowAfter",
|
||||
"addColumnBefore",
|
||||
"addColumnAfter"
|
||||
],
|
||||
"message": "Use the wrappers from shared/editor/commands/table instead, which respect the target index and place the cursor in the inserted cell."
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"no-unused-expressions": "error",
|
||||
"arrow-body-style": ["error", "as-needed"],
|
||||
"react/react-in-jsx-scope": "off",
|
||||
|
||||
Reference in New Issue
Block a user