BUG10870 - "A better trigger editor is needed"

error: The current trigger editor has no syntax check
Sol: Using CodeMirror as well as XMl editor, will give trigger editor the feature that it needs. + removing auto tabs at code begin.
This commit is contained in:
ralph
2013-03-25 12:07:48 -04:00
parent 9ccd67025a
commit 34df8edd2c

View File

@@ -77,7 +77,11 @@ var PHPParser = Editor.Parser = (function() {
function indentPHP(lexical) {
return function(firstChars) {
var firstChar = firstChars && firstChars.charAt(0), type = lexical.type;
var closing = firstChar == type;
if (type == "block") {
var closing = true;
} else {
var closing = firstChar == type;
}
if (type == "form" && firstChar == "{")
return lexical.indented;
else if (type == "stat" || type == "form")