mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 19:16:29 +08:00
feat: Double-link: Search interaction
This commit is contained in:
@@ -713,7 +713,10 @@ class SlateUtils {
|
||||
if (!this.editor) {
|
||||
return undefined;
|
||||
}
|
||||
const { selectionEnd } = this.getSelectionStartAndEnd();
|
||||
const selectionEnd = this.getSelectionStartAndEnd()?.selectionEnd;
|
||||
if (!selectionEnd) {
|
||||
return undefined;
|
||||
}
|
||||
return this.getStringBetween(this.getStart(), selectionEnd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user