setText method

void setText(
  1. String html
)

Sets the editor content from an HTML string.

Implementation

void setText(String html) {
  if (processInputHtml) {
    html = _processInput(html);
  }

  final document = _parser.parse(html);
  _documentController.setDocument(document);
  _editorWidgetState?.rebuild();
}