@wangeditor-next/editor 5.6.42 → 5.6.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import { UppyFile } from '@uppy/core';
6
+ import { IDomEditor } from '../editor/interface';
6
7
  type FilesType = {
7
8
  [key: string]: UppyFile<{}, {}>;
8
9
  };
@@ -23,14 +24,14 @@ interface IBaseUploadConfig {
23
24
  onError: (file: UppyFile<{}, {}>, error: any, res: any) => void;
24
25
  allowedFileTypes?: string[];
25
26
  customInsert?: (res: any, insertFn: InsertFn) => void;
26
- customUpload?: (files: File, insertFn: InsertFn) => void;
27
+ customUpload?: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
27
28
  customBrowseAndUpload?: (insertFn: InsertFn) => void;
28
29
  uppyConfig?: Record<string, any>;
29
30
  xhrConfig?: Record<string, any>;
30
31
  }
31
32
  interface IUploadConfigWithCustomUpload extends IBaseUploadConfig {
32
33
  server?: string;
33
- customUpload: (files: File, insertFn: InsertFn) => void;
34
+ customUpload: (files: File, insertFn: InsertFn, editor: IDomEditor) => void;
34
35
  }
35
36
  interface IUploadConfigWithoutCustomUpload extends IBaseUploadConfig {
36
37
  server: string;