Package com.taobao.zeus.web.platform.client.lib.codemirror

Examples of com.taobao.zeus.web.platform.client.lib.codemirror.CodeMirror


      scriptFieldSet = new FieldSet();
      scriptFieldSet.setCollapsible(true);
      scriptFieldSet.setHeadingText("脚本");
      CodeMirrorConfig cmc = new CodeMirrorConfig();
      cmc.readOnly = false;
      script = new CodeMirror(cmc);
      scriptFieldSet.add(script);
      scriptFieldSet.setResize(false);
      scriptFieldSet.setWidth("96%");
    }
    return scriptFieldSet;
View Full Code Here


    if(scriptFieldSet==null){
      scriptFieldSet=new FieldSet();
      scriptFieldSet.setCollapsible(true);
      scriptFieldSet.setHeadingText("脚本");
      CodeMirrorConfig cmc=new CodeMirrorConfig();
      script=new CodeMirror(cmc);
      scriptFieldSet.add(script);
      scriptFieldSet.setWidth("96%");
      scriptFieldSet.addBeforeHideHandler(new BeforeHideEvent.BeforeHideHandler() {
        @Override
        public void onBeforeHide(BeforeHideEvent event) {
View Full Code Here

        editCMC.mode = "htmlmixed";
      } else {
        editCMC.mode = "shell";
      }
      editCMC.readOnly = false;
      codeMirror = new CodeMirror(editCMC);
    }
    return codeMirror;
  }
View Full Code Here

        editCMC.mode="htmlmixed";
      }else{
        editCMC.mode="htmlmixed";
      }
      editCMC.readOnly = true;
      codeMirror = new CodeMirror(editCMC);
    }
    return codeMirror;
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.lib.codemirror.CodeMirror

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.