mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WIKI-508] fix: select all with table select #7285
This commit is contained in:
@@ -117,11 +117,15 @@ export const CustomKeymap = Extension.create({
|
||||
const endNodePos = tr.selection.$to.end();
|
||||
const isCurrentTextSelectionNotExtendedToNodeBoundaries =
|
||||
startSelectionPos > startNodePos || endSelectionPos < endNodePos;
|
||||
|
||||
if (isCurrentTextSelectionNotExtendedToNodeBoundaries) {
|
||||
// First press: select text within node boundaries
|
||||
editor.chain().selectTextWithinNodeBoundaries().run();
|
||||
return true;
|
||||
} else {
|
||||
editor.commands.selectAll();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user