lexical_rich_text 1.0.0 copy "lexical_rich_text: ^1.0.0" to clipboard
lexical_rich_text: ^1.0.0 copied to clipboard

Heading and quote nodes for lexical_core, wire-compatible with Lexical's @lexical/rich-text. Pure Dart.

lexical_rich_text

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 h1h6; 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.

0
likes
0
points
637
downloads

Publisher

verified publisherahmadre.com

Weekly Downloads

Heading and quote nodes for lexical_core, wire-compatible with Lexical's @lexical/rich-text. Pure Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

lexical_core, meta

More

Packages that depend on lexical_rich_text