insertHtml method

dynamic insertHtml(
  1. String html
)

Insert HTML code into the editor (It wont display the HTML code but it'll render it)

Implementation

insertHtml(String html) async {
  String? encodedHtml = encodeHtml(html);
  await executeJavascript("insertHtml('$encodedHtml');");
}