execCommand method

void execCommand(
  1. String commandId, {
  2. bool showUi = false,
  3. String? value,
})

execCommand implements the commands from the commmand manager section See the relevant Mozilla documentation here for details. https://developer.mozilla.org/en/docs/Rich-Text_Editing_in_Mozilla

Implementation

void execCommand(String commandId, {bool showUi = false, String? value}) {
  if (!_ready) throw AlohaException(AlohaException.notReady);
  _alohaContext.callMethod('execCommand', [commandId, showUi, value, null]);
}