clearSelection (moveCursorToStart) {
    const { rangeCount } = this.doc.getSelection()
    if (!rangeCount) return
    if (moveCursorToStart) {
      this.doc.getSelection().collapseToStart()
    } else {
      this.doc.getSelection().collapseToEnd()
    }
  }
Clear the current highlighted selection and set the caret to the start or the end of that prior selection, defaults to end.

 @param {boolean} moveCursorToStart  A boolean representing whether or not to set the caret to the beginning of the prior selection.