Merge "Fix 'setSelection' in textSelection API"

This commit is contained in:
jenkins-bot 2020-07-15 19:21:51 +00:00 committed by Gerrit Code Review
commit f40872ec83

View file

@ -50,8 +50,8 @@
return codeMirror.doc.getSelection();
},
setSelection: function ( options ) {
codeMirror.focus();
codeMirror.doc.setSelection( codeMirror.doc.posFromIndex( options.start ), codeMirror.doc.posFromIndex( options.end ) );
codeMirror.focus();
return this;
},
replaceSelection: function ( value ) {