Pastakhov has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/231219

Change subject: Add setContents to textSelection impl of CodeMirror
......................................................................

Add setContents to textSelection impl of CodeMirror

Bug: T108711
Change-Id: I65f25108863339fdcfc55c030a1158c2cd789b91
---
M resources/ext.CodeMirror.js
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CodeMirror 
refs/changes/19/231219/1

diff --git a/resources/ext.CodeMirror.js b/resources/ext.CodeMirror.js
index a3e968e..2e7a875 100644
--- a/resources/ext.CodeMirror.js
+++ b/resources/ext.CodeMirror.js
@@ -20,6 +20,10 @@
                                        return codeMirror.doc.getValue();
                                },
 
+                               setContents: function ( newContents ) {
+                                       codeMirror.doc.setValue( newContents );
+                               },
+
                                /**
                                 * Get the currently selected text in this 
textarea. Will focus the textarea
                                 * in some browsers (IE/Opera)

-- 
To view, visit https://gerrit.wikimedia.org/r/231219
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65f25108863339fdcfc55c030a1158c2cd789b91
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CodeMirror
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to