xiumi-ue-dialog-v5.js 729 B

1234567891011121314151617181920212223
  1. /**
  2. * Created by shunchen_yang on 16/10/25.
  3. */
  4. UE.registerUI('xiumi', function (editor, uiName) {
  5. var btn = new UE.ui.Button({
  6. name : 'xiumi-connect',
  7. title : '秀米',
  8. onclick: function () {
  9. var dialog = new UE.ui.Dialog({
  10. iframeUrl: '/statics/plugins/neditor/dialogs/xiumi/xiumi-ue-dialog-v5.html',
  11. editor : editor,
  12. name : 'xiumi-connect',
  13. title : "秀米图文消息助手",
  14. cssRules : "width: " + (window.innerWidth - 60) + "px;" + "height: " + (window.innerHeight - 60) + "px;",
  15. });
  16. dialog.render();
  17. dialog.open();
  18. }
  19. });
  20. return btn;
  21. });