summernoteMethodCall static method

String summernoteMethodCall({
  1. String selector = "'#summernote-2'",
  2. List<String> args = const [],
})

Build a JS function to call a summernote editor's method.

selector is the jQuery selector of the element where summernote editor is initialised. Defaults to #summernote-2. args are the arguments passed to the method.

Implementation

static String summernoteMethodCall({
  String selector = "'#summernote-2'",
  List<String> args = const [],
}) =>
    "\$($selector).summernote(${args.join(",")});";