@wangeditor-next/core 6.5.2 → 6.6.0
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.
- package/dist/index.d.ts +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/upload.d.ts +3 -0
- package/package.json +1 -1
package/dist/upload.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ type ImageElement = {
|
|
|
98
98
|
href?: string;
|
|
99
99
|
width?: string;
|
|
100
100
|
height?: string;
|
|
101
|
+
loading?: 'lazy' | 'eager';
|
|
101
102
|
style?: {
|
|
102
103
|
width?: string;
|
|
103
104
|
height?: string;
|
|
@@ -166,6 +167,7 @@ interface IImageMenuBaseConfig {
|
|
|
166
167
|
}
|
|
167
168
|
interface IInsertImageConfig extends IImageMenuBaseConfig {
|
|
168
169
|
onInsertedImage?: (imageNode: ImageElement | null) => void;
|
|
170
|
+
loading?: 'lazy' | 'eager';
|
|
169
171
|
}
|
|
170
172
|
interface IEditImageConfig extends IImageMenuBaseConfig {
|
|
171
173
|
onUpdatedImage?: (imageNode: ImageElement | null) => void;
|
|
@@ -220,6 +222,7 @@ interface IInsertVideoConfig {
|
|
|
220
222
|
type IUploadVideoConfig = IUploadConfig;
|
|
221
223
|
type IUploadImageConfig = IUploadConfig & {
|
|
222
224
|
base64LimitSize: number;
|
|
225
|
+
insertAsBlock?: boolean;
|
|
223
226
|
};
|
|
224
227
|
interface ICodeLangConfig {
|
|
225
228
|
codeLangs: {
|