135editor.js 830 B

12345678910111213141516171819202122
  1. UE.registerUI('135editor',function(editor,uiName){
  2. var dialog = new UE.ui.Dialog({
  3. iframeUrl: '/statics/plugins/neditor/dialogs/135editor/135EditorDialogPage.html',
  4. cssRules:"width:"+ parseInt(document.body.clientWidth*0.9) +"px;height:"+(window.innerHeight -50)+"px;",
  5. editor:editor,
  6. name:uiName,
  7. title:"135编辑器"
  8. });
  9. dialog.fullscreen = false;
  10. dialog.draggable = false;
  11. var btn = new UE.ui.Button({
  12. name:'btn-dialog-' + uiName,
  13. className:'edui-for-135editor',
  14. title:'135编辑器',
  15. onclick:function () {
  16. dialog.render();
  17. dialog.open();
  18. }
  19. });
  20. return btn;
  21. },undefined);
  22. // 修改最后的undefined参数为数字序号,比如5,可调整135编辑器按钮的顺序。默认出现在最后面