quill_format 1.0.2 copy "quill_format: ^1.0.2" to clipboard
quill_format: ^1.0.2 copied to clipboard

Simple and expressive format for describing rich-text content created for Quill.js editor.

example/main.dart

import 'package:quill_format/quill_format.dart';

void main() {
  var doc = Delta()..insert('Hello world', {'h': '1'});
  var change = Delta()
    ..retain(6)
    ..delete(5)
    ..insert('Earth');
  var result = doc.compose(change);
  print('Original document:\n$doc\n');
  print('Change:\n$change\n');
  print('Updated document:\n$result\n');

  /// Prints:
  ///
  ///     Original document:
  ///     ins⟨Hello world⟩ + {h: 1}
  ///
  ///     Change:
  ///     ret⟨6⟩
  ///     ins⟨Earth⟩
  ///     del⟨5⟩
  ///
  ///     Updated document:
  ///     ins⟨Hello ⟩ + {h: 1}
  ///     ins⟨Earth⟩
}
3
likes
130
pub points
74%
popularity

Publisher

unverified uploader

Simple and expressive format for describing rich-text content created for Quill.js editor.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection

More

Packages that depend on quill_format