From 1fe85b4ec0e24a9d92dfe5bb393910faafd4a408 Mon Sep 17 00:00:00 2001 From: Divyansh Kumar Date: Fri, 21 Feb 2025 22:59:33 +0530 Subject: [PATCH] TextNode: implemented isInline --- packages/lexical/src/nodes/LexicalTextNode.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/lexical/src/nodes/LexicalTextNode.ts b/packages/lexical/src/nodes/LexicalTextNode.ts index 10614535004..904fab50363 100644 --- a/packages/lexical/src/nodes/LexicalTextNode.ts +++ b/packages/lexical/src/nodes/LexicalTextNode.ts @@ -473,6 +473,13 @@ export class TextNode extends LexicalNode { return true; } + /** + * @returns true if the text node is inline, false otherwise. + */ + isInline(): boolean { + return true; + } + // View createDOM(config: EditorConfig, editor?: LexicalEditor): HTMLElement {