jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
He7d3r: Looks good to me, but someone else must approve
Jackmcbarn: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I0a5434b9d40d8945b6b801e2aa2b4b23466ea71c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeEditor
Gerrit-Branch: master
Gerrit-Owner: TheDJ <[email protected]>
Gerrit-Reviewer: He7d3r <[email protected]>
Gerrit-Reviewer: Helder.wiki <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits