File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -623,6 +623,7 @@ declare export class TextNode extends LexicalNode {
623
623
getFormat(): number;
624
624
getStyle(): string;
625
625
isComposing(): boolean;
626
+ isInline(): true;
626
627
isToken(): boolean;
627
628
isSegmented(): boolean;
628
629
isDirectionless(): boolean;
@@ -698,6 +699,7 @@ declare export class LineBreakNode extends LexicalNode {
698
699
getTextContent(): '\n';
699
700
createDOM(): HTMLElement;
700
701
updateDOM(): false;
702
+ isInline(): true;
701
703
static importJSON(
702
704
serializedLineBreakNode: SerializedLineBreakNode,
703
705
): LineBreakNode;
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ export class LineBreakNode extends LexicalNode {
50
50
return false ;
51
51
}
52
52
53
+ isInline ( ) : true {
54
+ return true ;
55
+ }
56
+
53
57
static importDOM ( ) : DOMConversionMap | null {
54
58
return {
55
59
br : ( node : Node ) => {
Original file line number Diff line number Diff line change @@ -473,6 +473,13 @@ export class TextNode extends LexicalNode {
473
473
return true ;
474
474
}
475
475
476
+ /**
477
+ * @returns true if the text node is inline, false otherwise.
478
+ */
479
+ isInline ( ) : true {
480
+ return true ;
481
+ }
482
+
476
483
// View
477
484
478
485
createDOM ( config : EditorConfig , editor ?: LexicalEditor ) : HTMLElement {
You can’t perform that action at this time.
0 commit comments