From 8d6f9beb6910b87fd07a2595f4046a3ed6608149 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 17 Jul 2012 14:47:29 -0400 Subject: [PATCH] added preliminary loading, so CodeMirror must work faster --- lib/client/editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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){