diff --git a/src/components/XyTinymce/axupimgs/loading.gif b/src/components/XyTinymce/axupimgs/loading.gif deleted file mode 100644 index 3fcefe7..0000000 Binary files a/src/components/XyTinymce/axupimgs/loading.gif and /dev/null differ diff --git a/src/components/XyTinymce/axupimgs/plugin.js b/src/components/XyTinymce/axupimgs/plugin.js deleted file mode 100644 index 929966a..0000000 --- a/src/components/XyTinymce/axupimgs/plugin.js +++ /dev/null @@ -1,75 +0,0 @@ -tinymce.PluginManager.add('axupimgs', function(editor, url) { - var pluginName='图片上传'; - window.axupimgs={}; //扔外部公共变量,也可以扔一个自定义的位置 - // var baseURL = `${process.env.VUE_APP_BASE_API}` - var baseURL = 'http://localhost:8012/' - var iframe1 =baseURL+'tinymce/plugins/axupimgs/upfiles.html'; - axupimgs.images_upload_handler = editor.getParam('images_upload_handler', undefined, 'function'); - axupimgs.images_upload_base_path = editor.getParam('images_upload_base_path', '', 'string'); - axupimgs.axupimgs_filetype = editor.getParam('axupimgs_filetype', '.png,.gif,.jpg,.jpeg', 'string'); - axupimgs.res=[]; - var openDialog = function() { - return editor.windowManager.openUrl({ - title: pluginName, - size: 'large', - url:iframe1, - buttons: [ - { - type: 'cancel', - text: 'Close' - }, - { - type: 'custom', - text: 'Save', - name: 'save', - primary: true - }, - ], - onAction: function (api, details) { - switch (details.name) { - case 'save': - var html = ''; - var imgs = axupimgs.res; - var len = imgs.length; - for(let i=0;i'; - } - } - editor.insertContent(html); - axupimgs.res=[]; - api.close(); - break; - default: - break; - } - - } - }); - }; - - editor.ui.registry.getAll().icons.axupimgs || editor.ui.registry.addIcon('axupimgs',''); - - editor.ui.registry.addButton('axupimgs', { - icon: 'axupimgs', - tooltip: pluginName, - onAction: function() { - openDialog(); - } - }); - editor.ui.registry.addMenuItem('axupimgs', { - icon: 'axupimgs', - text: '图片批量上传...', - onAction: function() { - openDialog(); - } - }); - return { - getMetadata: function() { - return { - name: pluginName, - url: "http://tinymce.ax-z.cn/more-plugins/axupimgs.php", - }; - } - }; -}); diff --git a/src/components/XyTinymce/axupimgs/plugin.min.js b/src/components/XyTinymce/axupimgs/plugin.min.js deleted file mode 100644 index db7a3cc..0000000 --- a/src/components/XyTinymce/axupimgs/plugin.min.js +++ /dev/null @@ -1,75 +0,0 @@ -tinymce.PluginManager.add('axupimgs', function(editor, url) { - var pluginName='Ax多图片上传'; - window.axupimgs={}; //扔外部公共变量,也可以扔一个自定义的位置 - - var baseURL=tinymce.baseURL; - var iframe1 = baseURL+'/plugins/axupimgs/upfiles.html'; - axupimgs.images_upload_handler = editor.getParam('images_upload_handler', undefined, 'function'); - axupimgs.images_upload_base_path = editor.getParam('images_upload_base_path', '', 'string'); - axupimgs.axupimgs_filetype = editor.getParam('axupimgs_filetype', '.png,.gif,.jpg,.jpeg', 'string'); - axupimgs.res=[]; - var openDialog = function() { - return editor.windowManager.openUrl({ - title: pluginName, - size: 'large', - url:iframe1, - buttons: [ - { - type: 'cancel', - text: 'Close' - }, - { - type: 'custom', - text: 'Save', - name: 'save', - primary: true - }, - ], - onAction: function (api, details) { - switch (details.name) { - case 'save': - var html = ''; - var imgs = axupimgs.res; - var len = imgs.length; - for(let i=0;i'; - } - } - editor.insertContent(html); - axupimgs.res=[]; - api.close(); - break; - default: - break; - } - - } - }); - }; - - editor.ui.registry.getAll().icons.axupimgs || editor.ui.registry.addIcon('axupimgs',''); - - editor.ui.registry.addButton('axupimgs', { - icon: 'axupimgs', - tooltip: pluginName, - onAction: function() { - openDialog(); - } - }); - editor.ui.registry.addMenuItem('axupimgs', { - icon: 'axupimgs', - text: '图片批量上传...', - onAction: function() { - openDialog(); - } - }); - return { - getMetadata: function() { - return { - name: pluginName, - url: "http://tinymce.ax-z.cn/more-plugins/axupimgs.php", - }; - } - }; -}); diff --git a/src/components/XyTinymce/axupimgs/upfiles.html b/src/components/XyTinymce/axupimgs/upfiles.html deleted file mode 100644 index 7f8f62c..0000000 --- a/src/components/XyTinymce/axupimgs/upfiles.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - -axupimgs - - - - - - - - - -
-
-
    -
    - - - -