website/playground/panels.js/CodeMirrorPanel/handleSelectionChange
class CodeMirrorPanel:  handleSelectionChange(doc, change) {
    if (this.props.onSelectionChange) {
      this.props.onSelectionChange(change.ranges[0]);
    }
  }