mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
added preliminary loading, so CodeMirror must work faster
This commit is contained in:
parent
0a8990b64e
commit
cfa0dfcd80
1 changed files with 5 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue