Use Tab to indent

This commit is contained in:
oc 2018-03-16 01:07:21 +08:00
parent 0811248bba
commit 1764592f62
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ editor_mode.prototype.objToTd = function(thiseval,comment,field){
} }
editor_mode.prototype.indent = function(field){ editor_mode.prototype.indent = function(field){
var num = 4; var num = '\t';
if(field.indexOf("['main']")===0)return 0; if(field.indexOf("['main']")===0)return 0;
if(field.indexOf("['flyRange']")!==-1)return 0; if(field.indexOf("['flyRange']")!==-1)return 0;
if(field==="['special']")return 0; if(field==="['special']")return 0;

View File

@ -40,7 +40,7 @@ editor_multi.hide = function(){document.getElementById('left7').style='z-index:-
editor_multi.indent = function(field){ editor_multi.indent = function(field){
if(editor && editor.mode && editor.mode.indent)return editor.mode.indent(field); if(editor && editor.mode && editor.mode.indent)return editor.mode.indent(field);
return 4; return '\t';
} }
editor_multi.import = function(id_){ editor_multi.import = function(id_){