setCursorToEnd static method

String setCursorToEnd()

Build a function which moves the cursor to the end of the editor.

Implementation

static String setCursorToEnd() => function(
      name: "setCursorToEnd",
      body: '''
${summernoteMethodCall(args: [
            "'setLastRange'",
            "\$.summernote.range.createFromNodeAfter($editorSelector[0]).select()"
          ])}
''',
    );