Constant.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. if(!window.editorconstant)window.editorconstant={};
  2. // When creating a table using the Wizard, the following default attributes apply.
  3. editorconstant._CreateEditingTableStyle = "<table border='0' cellspacing='2' cellpadding='2' width='500'>";
  4. // When creating a new div box, the following default attributes apply.
  5. editorconstant._BoxFormattingStyle = "border: solid 1px #666666;";
  6. // Default editorconstant ornaments for the ColorPicker dialog
  7. editorconstant._colorpickerDialogFeature = "dialogWidth:500px;dialogHeight:335px;help:0;status:0;resizable:1";
  8. // Default editorconstant ornaments for the Preview dialog
  9. editorconstant._previewDialogFeature = "dialogWidth:640px;dialogHeight:480px;help:0;status:0;resizable:1";
  10. // Default editorconstant ornaments for the Anchor dialog
  11. editorconstant._anchorDialogFeature = "help:0;status:0;resizable:0;dialogWidth:320px;dialogHeight:250px;";
  12. // Default editorconstant ornaments for the Link dialog
  13. editorconstant._linkDialogFeature = "help:0;status:0;resizable:0;dialogWidth:460px;dialogHeight:214px;";
  14. // Default editorconstant ornaments for the Char dialog
  15. editorconstant._charDialogFeature = "help:0;status:0;resizable:0;dialogWidth:480px;dialogHeight:385px;";
  16. // Default editorconstant ornaments for the find dialog
  17. editorconstant._findDialogFeature = "help:0;status:0;resizable:1;dialogWidth:385px;dialogHeight:180px;";
  18. // Default editorconstant ornaments for the Emotion dialog
  19. editorconstant._emotionDialogFeature = "help:0;status:0;resizable:0;dialogWidth:320px;dialogHeight:365px;";
  20. // Default editorconstant ornaments for the Template dialog
  21. editorconstant._templateDialogFeature = "status:0;dialogWidth:660px;dialogHeight:470px; scroll: 0; resizable: 0; help:0";
  22. // Default editorconstant ornaments for the Create Template dialog
  23. editorconstant._createtemplateDialogFeature = "dialogWidth:760px;dialogHeight:385px;help:no;scroll:no;status:no;resizable:0;";
  24. // Default editorconstant ornaments for the Document dialog
  25. editorconstant._documentDialogFeature = "status:0;dialogWidth:600px;dialogHeight:560px; scroll: 0; resizable: 0; help:0";
  26. // Default editorconstant ornaments for the gallery dialog
  27. editorconstant._galleryDialogFeature = "status:0;dialogWidth:564px;dialogHeight:630px; scroll: 0; resizable: yes; help:0";
  28. // Default editorconstant ornaments for the image dialog
  29. editorconstant._imageDialogFeature = "status:0;dialogWidth:620px;dialogHeight:595px; scroll: 0; resizable: 0; help:0";
  30. // Default editorconstant ornaments for the image map dialog
  31. editorconstant._imagemapDialogFeature = "status:0;dialogWidth:610px;dialogHeight:400px; scroll: 0; resizable: yes; help:0";
  32. // Default editorconstant ornaments for the media dialog
  33. editorconstant._mediaDialogFeature = "status:0;dialogWidth:580px;dialogHeight:550px; scroll: 0; resizable: 0; help:0";
  34. // Default editorconstant ornaments for the flash dialog
  35. editorconstant._flashDialogFeature = "status:0;dialogWidth:587px;dialogHeight:595px; scroll: 0; resizable: 0; help:0";
  36. // Default editorconstant ornaments for the page properties dialog
  37. editorconstant._pageDialogFeature = "status:0;dialogWidth:490px;dialogHeight:520px; scroll: 0; resizable: yes; help:0";
  38. // Default editorconstant ornaments for the Tag dialog
  39. editorconstant._tagDialogFeature = "help:0;status:0;resizable:0;dialogWidth:453px;dialogHeight:515px;";
  40. // Default editorconstant ornaments for the help 
  41. editorconstant._helpDialogFeature = "status:0;dialogWidth:760px;dialogHeight:540px; scroll: 1; resizable: 0; help:0";
  42. // Default editorconstant ornaments for the Rule dialog
  43. editorconstant._RuleDialogFeature = "help:0;status:0;resizable:1;dialogWidth:340px;dialogHeight:210px;";
  44. // Default style in the source view 
  45. editorconstant._editorSourceStyle = "background:#ffffff;margin:0;padding:0;color:black";
  46. // Default editorconstant ornaments for the color picker dialog
  47. editorconstant._pastetextDialogFeature = "width=450,height=400,resizable=0,toolbars=0,menubar=0,status=0";
  48. // Default editorconstant ornaments for the universal keyboard dialog
  49. editorconstant._keyboardDialogFeature = "help:0;status:0;resizable:0;dialogWidth:415px;dialogHeight:310px;";
  50. // All colors in the following color array will be used in the editor color picker
  51. editorconstant.colorsArray = new Array("#000000","#993300","#333300","#003300","#003366","#000080","#333399","#333333",
  52. "#800000","#FF6600","#808000","#008000","#008080","#0000FF","#666699","#808080",
  53. "#FF0000","#FF9900","#99CC00","#339966","#33CCCC","#3366FF","#800080","#999999",
  54. "#FF00FF","#FFCC00","#FFFF00","#00FF00","#00FFFF","#00CCFF","#993366","#C0C0C0",
  55. "#FF99CC","#FFCC99","#FFFF99","#CCFFCC","#CCFFFF","#99CCFF","#CC99FF","#FFFFFF");
  56. // Specifies whether MoreColors button in the color picker are visible 
  57. editorconstant.ShowMoreColors = true;
  58. editorconstant.layerdefaultstyle = "position:absolute;width:104px; height: 104px";
  59. editorconstant.DisableCtrlZ = false;
  60. //By default, when users double click a control, a tag property dialog will open. Set it to true if you want to disable this feature.
  61. editorconstant.DisableDoubleClickEvent = false; 
  62. editorconstant.AbsolutePositionValue='absolute'; //'relative';
  63. //set to window for compatible
  64. for(var p in editorconstant)window[p]=editorconstant[p];