insertLink method

Future<void> insertLink(
  1. String text,
  2. String url,
  3. bool isNewWindow
)

Insert a link at the position of the cursor in the editor

Implementation

Future<void> insertLink(String text, String url, bool isNewWindow) async {
  await evaluateJavascript(data: {
    'type': 'toIframe: makeLink',
    'text': text,
    'url': url,
    'isNewWindow': isNewWindow
  });
}