getCurrentHtml method

dynamic getCurrentHtml()

Get current HTML data from Editor

Implementation

getCurrentHtml() async {
  String? html = await executeJavascript('getEncodedHtml();');
  String? decodedHtml = decodeHtml(html!);
  if (decodedHtml!.startsWith('"') && decodedHtml.endsWith('"')) {
    decodedHtml = decodedHtml.substring(1, decodedHtml.length - 1);
  }
  return decodedHtml;
}