From 671d2b94996ac71d56b2d05d5fe694ed7d84fa59 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Wed, 4 Apr 2012 12:27:35 -0700 Subject: upgrading to CodeMirror 2.23, since it has an important fix to Not close Ninja, if backspace is pressed while autocomplete dropdown is open. Signed-off-by: Ananya Sen --- imports/codemirror/mode/xml/xml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'imports/codemirror/mode/xml/xml.js') diff --git a/imports/codemirror/mode/xml/xml.js b/imports/codemirror/mode/xml/xml.js index f467bddc..d8f17efb 100644 --- a/imports/codemirror/mode/xml/xml.js +++ b/imports/codemirror/mode/xml/xml.js @@ -264,4 +264,5 @@ CodeMirror.defineMode("xml", function(config, parserConfig) { }); CodeMirror.defineMIME("application/xml", "xml"); -CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); +if (!CodeMirror.mimeModes.hasOwnProperty("text/html")) + CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); -- cgit v1.2.3