123456789101112131415161718192021222324252627282930313233343536373839 |
- UE.registerUI('135editor',function(editor,uiName){
-
-
-
-
-
-
-
-
-
- var btn = new UE.ui.Button({
- name:'btn-dialog-' + uiName,
- className:'edui-for-135editor',
- title:'135编辑器',
- onclick:function () {
-
-
-
- var editor135 = window.open('https://www.135editor.com/simple_editor.html?callback=true&appkey=')
-
-
-
- window.addEventListener('message', function (event) {
- if (typeof event.data !== 'string') {
- if(event.data.ready) {
- editor135.postMessage(editor.getContent(),'*');
- }
- return;
- };
- editor.setContent(event.data);
- editor.fireEvent("catchRemoteImage");
- }, false);
- }
- });
- return btn;
- },undefined);
|