版本发布 8
Limit `registerBackspaceFix` and `registerArrowRightFix` to fire only when associated with their specific targets - fixes [Issue #49](https://github.com/enzedonline/quill-blot-formatter2/issues/49): `registerBackspaceFix` fires only for iframes `registerArrowRightFix` fires only for formatted image wrapper with `contenteditable=false` span
## [v3.0.2] - 2025-09-18 ### Changed Add `enabled` property to mirror Quill editor enabled state. Hide proxies and disable image click behaviour when enabled false. Mutation observer on quill container monitors changes to classlist and set enabled based on presence of `ql-disabled`. Previous behaviour only disabled if quill started with read-only option.
## [v3.0.1] - 2025-09-11 ### Changed A minor update to add option to use px sizing on images when sizing in absolute mode. Adds option `image: { autoheight: boolean }`. When set to false and sizing in absolute mode, image height will be set in px rather than default `auto` - addresses requirement for PDF output. Using relative sizing, the image height will be `auto` regardless of this setting.
This is a minor change in functionality, but includes breaking changes from previous versions that address issues when importing to certain platforms. **Build paths have changed from 2.x**. ***This is the earliest version that has an ESM output build.*** ### :warning: Breaking Changes Webpack has been discontinued form this project in favour of Vite. This has allowed a much smoother development path and identification of an underlying issue when importing into certain platforms such as React, angular etc. While making this change, I've added an ESM output and changed the published build path from the original, legacy project to meet standards. A warning will be displayed in the console if upgrading from version 2.x there. See the [Installation](README.md#installation) section for more details. Corresponding map files are now output for each build and code has been doc-stringed throughout to ease developing / extending the BlotFormatter. The biggest change under the hood is removing references to the Quill global static methods in favour of using the quill instance constructor. For that reason, the image and iframe align formats are no longer exported as classes but as class factories `createIframeAlignAttributor` and `createImageAlignAttributor`. ### Other Changes - Debugging is now available by setting option `debug: true` - this is a verbose mode with output to the debug console. This mode will also add the blotFormatter instance to the global window object. - Formatter toolbar will now scroll into view in most cases if hidden when activating formatter overlay. - Optional Quill tooltip fix will contain Quill's native tooltip within the bounds of the Quill editor element. This is intended for use on scrollable editors where Quill will display the tooltip outside if this rectangle in some cases causing clipping. See [containTooltipPosition](./README.md#containtooltipposition). #### Updated devDependencies ``` ├── "@types/node": "^24.2.0", ├── "ajv": "^8.17.1", ├── "quill": "^2.0.3", ├── "rimraf": "^6.0.1", ├── "rollup-plugin-visualizer": "^6.0.3", ├── "typescript": "^5.9.2", ├── "vite": "^7.0.6", └── "vite-plugin-dts": "^4.5.4" ```
A minor bug fix to include some tweaks to default styles to the modals that were omitted from the previous release.
### Changed `AttributeAction` will now create an empty `alt` attribute if no value was passed. The optional custom ImageBlot was amended to support this. Previously, the attribute was removed. This for accessibilty compatibility and allows editors to set a blank `alt` to tell screenreaders to ignore the image. ### Updated `tsconfig.compilerOptions.module` updated from `commonjs` to `es2022`. Following package versions updated: | Package | Previous Version | Updated Version | |------------------------|-----------------|-----------------| | quill | ^2.0.2 | ^2.0.3 | | terser-webpack-plugin | ^5.3.10 | ^5.3.11 | | ts-loader | ^9.5.1 | ^9.5.2 | | typescript | ^5.6.2 | ^5.7.3 | | webpack | ^5.94.0 | ^5.97.1 | | webpack-cli | ^5.1.4 | ^6.0.1 |
Enhancements: - Added Compress action for embedded images (other than gif & svg). Optional action to reduce those images either to a maximum width or to their resized dimensions (if absolute and not relative). Configurable jpeg compression to further reduce image file size. - Added resize option to protect images from being resized larger than their natural (intrinsic) size. Excludes SVG.
Minor bug fix: - Bug fix: when clicking directly from one video to another, the target became `null` instead of the new target video. Now correctly loads target video. - Bug fix: insome cases, proxies became misaligned if ancestor element of quill root (other than the document window) was in a scrolled position. Now correctly tracks target video positions regardless of ancestor scroll positions. - Enhancement: alt/title modal - Styles & button icons now configurable via options. Replaced button icon unicode glyphs with svg images for more reliable rendering.