@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 CHANGED
@@ -219,6 +219,7 @@ type ImageElement = {
219
219
  href?: string;
220
220
  width?: string;
221
221
  height?: string;
222
+ loading?: 'lazy' | 'eager';
222
223
  style?: {
223
224
  width?: string;
224
225
  height?: string;
@@ -309,6 +310,7 @@ interface IImageMenuBaseConfig {
309
310
  }
310
311
  interface IInsertImageConfig extends IImageMenuBaseConfig {
311
312
  onInsertedImage?: (imageNode: ImageElement | null) => void;
313
+ loading?: 'lazy' | 'eager';
312
314
  }
313
315
  interface IEditImageConfig extends IImageMenuBaseConfig {
314
316
  onUpdatedImage?: (imageNode: ImageElement | null) => void;
@@ -363,6 +365,7 @@ interface IInsertVideoConfig {
363
365
  type IUploadVideoConfig = IUploadConfig;
364
366
  type IUploadImageConfig = IUploadConfig & {
365
367
  base64LimitSize: number;
368
+ insertAsBlock?: boolean;
366
369
  };
367
370
  interface ICodeLangConfig {
368
371
  codeLangs: {