mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Lexical: Added auto links on enter/space
This commit is contained in:
@ -51,6 +51,10 @@ export function $getNodeFromSelection(selection: BaseSelection | null, matcher:
|
||||
return null;
|
||||
}
|
||||
|
||||
export function $getTextNodeFromSelection(selection: BaseSelection | null): TextNode|null {
|
||||
return $getNodeFromSelection(selection, $isTextNode) as TextNode|null;
|
||||
}
|
||||
|
||||
export function $selectionContainsTextFormat(selection: BaseSelection | null, format: TextFormatType): boolean {
|
||||
if (!selection) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user