lexical_core 1.7.2
lexical_core: ^1.7.2 copied to clipboard
Pure-Dart editor state model that is wire-compatible with Meta's Lexical editor: node map, sibling-pointer tree, immutable double-buffered state, node registry and JSON import/export. No Flutter dependency.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add lexical_coreThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
lexical_core: ^1.7.2Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lexical_core/lexical_core.dart';