  var editor = ace.edit(id);
        editor.setTheme("ace/theme/monokai"); //
    
        editor.setOptions({
            maxLines: 50, 
            fontSize: "12pt"
        });
        //editor.setUseWorker(false);
        editor.session.setMode("ace/mode/javascript");
        return editor;
    }
    //    setupAceEditor();
    var IdRegister = new Wexcalibur();
    // keep a record of the instanciated editor for each Id
    var EditorRegister = {};
     

    function saveEditor(id,editor){
        Edit