fromHtml static method

Future<ZdsQuillDelta> fromHtml(
  1. String htmlString
)

Creates a ZdsQuillDelta instance by converting the given htmlString to Quill's Delta.

Implementation

static Future<ZdsQuillDelta> fromHtml(String htmlString) async {
  final Delta delta = await htmlString.toDelta();
  return ZdsQuillDelta(document: Document.fromDelta(delta));
}