mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 02:04:02 +00:00
Merge "Fix 'setSelection' in textSelection API"
This commit is contained in:
commit
f40872ec83
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue