Skip to content

v6.6.0

Choose a tag to compare

@cycleccc cycleccc released this 14 Nov 04:52
02d1f40

What's Changed

  • Support native image lazy loading. Image elements now keep the <img loading="lazy|eager"> attribute through setHtml/paste parsing, editor rendering and getHtml, and the new opt-in MENU_CONF.insertImage.loading option sets it on newly inserted and uploaded images. Unsupported values are ignored and nothing changes when the option is not set.
  • Add opt-in MENU_CONF.uploadImage.insertAsBlock so each uploaded image is inserted in its own paragraph instead of flowing inline next to the previous one. The default stays inline; insertImageNode accepts a new { block } option for custom integrations.
  • Resize the currently selected image when reusing the image size dialog.
  • Fix block image insertion leaving an extra empty paragraph in documents with multiple paragraphs or rich table cells. Reuse the selected empty paragraph while keeping existing image paragraphs separate.
Package versions
Package Version Source
@wangeditor-next/basic-modules 6.6.0 Source (tar.gz)
@wangeditor-next/code-highlight 6.6.0 Source (tar.gz)
@wangeditor-next/core 6.6.0 Source (tar.gz)
@wangeditor-next/editor 6.6.0 Source (tar.gz)
@wangeditor-next/editor-for-react 6.6.0 Source (tar.gz)
@wangeditor-next/editor-for-vue 6.6.0 Source (tar.gz)
@wangeditor-next/editor-for-vue2 6.6.0 Source (tar.gz)
@wangeditor-next/list-module 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-attachment 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-ctrl-enter 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-float-image 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-formula 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-link-card 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-markdown 6.6.0 Source (tar.gz)
@wangeditor-next/plugin-mention 6.6.0 Source (tar.gz)
@wangeditor-next/table-module 6.6.0 Source (tar.gz)
@wangeditor-next/upload-image-module 6.6.0 Source (tar.gz)
@wangeditor-next/video-module 6.6.0 Source (tar.gz)
@wangeditor-next/yjs 6.6.0 Source (tar.gz)
@wangeditor-next/yjs-for-react 6.6.0 Source (tar.gz)
@wangeditor-next/yjs-for-vue 6.6.0 Source (tar.gz)