Main.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //MWF.require("MWF.widget.JavascriptEditor", null, false);
  2. MWF.xDesktop.requireApp("ScriptEditor", "Editor", null, false);
  3. MWF.xApplication.ScriptEditor.Main = new Class({
  4. Extends: MWF.xApplication.Common.Main,
  5. Implements: [Options, Events],
  6. options: {
  7. "style": "default",
  8. "name": "ScriptEditor",
  9. "icon": "icon.png",
  10. "width": "1000",
  11. "height": "600",
  12. "isResize": true,
  13. "title": MWF.xApplication.ScriptEditor.LP.title
  14. },
  15. onQueryLoad: function(){
  16. this.lp = MWF.xApplication.ScriptEditor.LP;
  17. },
  18. createNode: function(){
  19. this.content.setStyle("overflow", "hidden");
  20. this.node = new Element("div", {
  21. "styles": this.css.contentNode
  22. }).inject(this.content);
  23. },
  24. loadApplication: function(callback){
  25. this.createNode();
  26. this.editor = new MWF.xApplication.ScriptEditor.Editor(this.node, this);
  27. this.editor.load();
  28. // this.editor = new MWF.widget.JavascriptEditor(this.node);
  29. // this.editor.load();
  30. //this.node.set("html", "12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>12356<br/>");
  31. }
  32. });