Awesome Open Source
Awesome Open Source

Build Status codecov Pub

Implementation of Quill editor Delta format in Dart. Refer to official documentation for more details.

Usage

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⟩
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Dart (53,962
Editor (31,934
Flutter (30,565
Format (16,319
Bug (13,351
Issue Tracker (1,951
Dartlang (783
Quilljs (677
Operational Transformation (95
Quill Delta (10