added preliminary loading, so CodeMirror must work faster

This commit is contained in:
coderaiser 2012-07-17 14:47:29 -04:00
parent 0a8990b64e
commit cfa0dfcd80

View file

@ -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){