v2.0.0
quill_delta
Simple and expressive format for describing rich-text content created for Quill.js editor. This package is unofficial port to Dart from JavaScript.
34Likes 6.2K30-day downloads40Pub points
Platforms unavailable
Implementation of Quill editor Delta format in Dart.
English project snapshot. Visit GitHub for the latest content.
Implementation of Quill editor Delta format in Dart. Refer to official documentation for more details.
import 'package:quill_delta/quill_delta.dart';
void main() {
var doc = new Delta()..insert('Hello world', {'h': '1'});
var change = new 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⟩
}
Please file feature requests and bugs at the issue tracker.
Dependency list 6 items
^1.15.0^3.0.0^0.4.1^1.0.0^1.11.0^1.17.5Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗