diff --git a/lib/client/editor.js b/lib/client/editor.js index d9d3b59b..92bd05e3 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -33,7 +33,7 @@ CloudCommander.Editor.CloudMirror = { }); var lShowEditor_f = function (){ - if (!document.getElementById('CloudEditor')) { + if (!document.getElementById('CloudEditor')) { var lEditor=document.createElement('div'); lEditor.id ='CloudEditor'; lEditor.className = 'hidden'; @@ -95,6 +95,10 @@ CloudCommander.Editor.CloudMirror = { }; CloudCommander.Editor.Keys = (function(){ "use strict"; + + /* loading js and css of CodeMirror */ + CloudCommander.Editor.CloudMirror.load(); + var key_event=function(event){ /* если клавиши можно обрабатывать*/ if(CloudCommander.keyBinded){