mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 01:26:37 +08:00
feat: Double-link: Search interaction
This commit is contained in:
@@ -192,9 +192,10 @@ export const DoubleLinkMenu = ({
|
||||
anchorNode.id !== curBlockId &&
|
||||
editor.blockHelper.isSelectionCollapsed(anchorNode.id))
|
||||
) {
|
||||
const text = editor.blockHelper.getBlockTextBeforeSelection(
|
||||
anchorNode.id
|
||||
);
|
||||
const text =
|
||||
editor.blockHelper.getBlockTextBeforeSelection(
|
||||
anchorNode.id
|
||||
) || '';
|
||||
if (text.endsWith('[[')) {
|
||||
resetState(curBlockId, anchorNode.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user