reverted 4622 codemirror3 because broke zencoding and drops support for IE7, we do not use the new features anyway. Sorry

This commit is contained in:
mdipierro
2013-01-23 08:17:59 -06:00
parent b7f2991246
commit b1f77b9c4a
47 changed files with 4458 additions and 7601 deletions
+8 -2
View File
@@ -12,7 +12,13 @@
cm.setCursor(cursor);
}
// dirty hack for simple-hint to receive getHint event on space
var getTokenAt = editor.getTokenAt;
editor.getTokenAt = function() { return 'disabled'; };
CodeMirror.simpleHint(cm, getHint);
editor.getTokenAt = getTokenAt;
};
var getHint = function(cm) {
@@ -36,7 +42,7 @@
text = text.slice(0, text.length - typed.length);
var path = getActiveElement(text) + simbol;
var path = getActiveElement(cm, text) + simbol;
var hints = CodeMirror.xmlHints[path];
if(typeof hints === 'undefined')
@@ -57,7 +63,7 @@
};
};
var getActiveElement = function(text) {
var getActiveElement = function(codeMirror, text) {
var element = '';