replaceText method

Future replaceText(
  1. String text
)

Replaces the selected text in the editor.

The replaceText method is used to replace the currently selected text in the editor with the specified HTML text.

custom format for replaced text will come in future release

Implementation

Future replaceText(String text) async {
  return await _editorKey?.currentState?._replaceText(text);
}