disable method

Future<void> disable()

disables the Html editor

Implementation

Future<void> disable() async {
  if (isDisabled) return;
  toolbar?.disable();
  await evaluateJavascript(data: {'type': 'toIframe: disable'});
  //await recalculateContentHeight();
  isDisabled = true;
  notifyListeners();
}