fix: 优化图片上传插件

This commit is contained in:
dj
2024-12-13 13:10:30 +08:00
parent 43785b7460
commit dc099c9347
3 changed files with 204 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ tinymce.PluginManager.add('axupimgs', function(editor, url) {
const baseURL = import.meta.env.VITE_BASE_URL
// var baseURL=tinymce.baseURL;
var iframe1 = '/src/assets/axupimgs/upfiles.html';
var iframe1 = '/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');