@lobehub/editor
Version:
A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.
31 lines (29 loc) • 1.12 kB
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import type { KlassConstructor } from '../LexicalEditor';
import type { DOMConversionMap, NodeKey, SerializedLexicalNode } from '../LexicalNode';
import { LexicalNode } from '../LexicalNode';
export type SerializedLineBreakNode = SerializedLexicalNode;
/** @noInheritDoc */
export declare class LineBreakNode extends LexicalNode {
/** @internal */
['constructor']: KlassConstructor<typeof LineBreakNode>;
static getType(): string;
static clone(node: LineBreakNode): LineBreakNode;
constructor(key?: NodeKey);
getTextContent(): '\n';
createDOM(): HTMLElement;
updateDOM(): false;
isInline(): true;
static importDOM(): DOMConversionMap | null;
static importJSON(serializedLineBreakNode: SerializedLineBreakNode): LineBreakNode;
}
export declare function $createLineBreakNode(): LineBreakNode;
export declare function $isLineBreakNode(
node: LexicalNode | null | undefined,
): node is LineBreakNode;