lexical_rich_text 1.7.1
lexical_rich_text: ^1.7.1 copied to clipboard
Heading and quote nodes for lexical_core, wire-compatible with Lexical's @lexical/rich-text. Pure Dart.

lexical_rich_text #
Heading and quote nodes for lexical_core.
Pure Dart, no Flutter dependency.
dependencies:
lexical_rich_text: ^1.0.0
final editor = LexicalEditor(nodes: richTextNodes);
editor.update(() {
$getRoot()
..append($createHeadingNode(HeadingTag.h2)..append($createTextNode('Bericht')))
..append($createQuoteNode()..append($createTextNode('Zitiert')));
}, discrete: true);
HeadingNode carries a tag of h1…h6; HeadingTag.level gives the
numeric level for styling. QuoteNode has no fields of its own — only the
element base shape.
Wire-compatible with @lexical/rich-text 0.48.x.
Licence #
MIT. Derived from Lexical, © Meta Platforms, Inc., also MIT. See NOTICE.