TheDJ has uploaded a new change for review. https://gerrit.wikimedia.org/r/176480
Change subject: Add setContents to textSelection impl of CodeEditor ...................................................................... Add setContents to textSelection impl of CodeEditor Change-Id: I0a5434b9d40d8945b6b801e2aa2b4b23466ea71c --- M modules/jquery.codeEditor.js 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeEditor refs/changes/80/176480/1 diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js index a0cac77..e0c4803 100644 --- a/modules/jquery.codeEditor.js +++ b/modules/jquery.codeEditor.js @@ -559,6 +559,10 @@ return context.codeEditor.getSession().getValue(); }, + 'setContents': function ( newContents ) { + context.codeEditor.getSession().setValue( newContents ); + }, + /** * Gets the currently selected text in the content * DO NOT CALL THIS DIRECTLY, use $.textSelection( 'functionname', options ) instead -- To view, visit https://gerrit.wikimedia.org/r/176480 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0a5434b9d40d8945b6b801e2aa2b4b23466ea71c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CodeEditor Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits