diff --git a/lib/client/editor.js b/lib/client/editor.js index bfad6262..5b84651b 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -105,9 +105,13 @@ CloudCommander.Editor.CodeMirror = { document.body.removeChild([0]); }; }), - getById: function(pId){return document.getElementById(pId);}, + getById : function(pId){return document.getElementById(pId);}, - getPanel: function(){ + getByClass : function(pClass){ + return document.getElementsByClassName(pClass); + }, + + getPanel : function(){ var lCurrent = document.getElementsByClassName('current-file'); lCurrent.length && (lCurrent = lCurrent[0].parentElement);