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

Mark nodes (annotations and comment ranges) for lexical_core, wire-compatible with Lexical's @lexical/mark.

lexical_mark

lexical_mark #

Mark nodes — annotations and comment ranges — for lexical_core. Pure Dart.

dependencies:
  lexical_mark: ^1.0.0
final editor = LexicalEditor(nodes: markNodes);

editor.update(() {
  $getRoot().append(
    $createParagraphNode()
      ..append($createMarkNode(['comment-1'])
        ..append($createTextNode('markiert'))),
  );
}, discrete: true);

A mark wraps inline content and carries a set of identifiers. Overlapping annotations are represented by nesting marks rather than by letting one node belong to two ranges — which is why ids is a list: the innermost mark of an overlap carries every identifier that covers it.

Wire-compatible with @lexical/mark 0.48.x.

Licence #

MIT. Derived from Lexical, © Meta Platforms, Inc., also MIT. See NOTICE.

0
likes
0
points
541
downloads

Publisher

verified publisherahmadre.com

Weekly Downloads

Mark nodes (annotations and comment ranges) for lexical_core, wire-compatible with Lexical's @lexical/mark.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

lexical_core, meta

More

Packages that depend on lexical_mark