@flogeez/angular-tiptap-editor 3.1.0 → 3.1.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to `@flogeez/angular-tiptap-editor` will be documented in th
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), with the exception that the major version is specifically aligned with the major version of [Tiptap](https://tiptap.dev).
7
7
 
8
+ ## [3.1.1] - 2026-02-13
9
+
10
+ ### Fixed
11
+
12
+ - **Image Resizing**: Resolved a bug where multiple selected images were resized simultaneously. The update now precisely targets the intended node.
13
+
8
14
  ## [3.1.0] - 2026-02-13
9
15
 
10
16
  ### Added
@@ -220,15 +220,17 @@ const AteResizableImage = Node$1.create({
220
220
  const handleMouseUp = () => {
221
221
  isResizing = false;
222
222
  document.body.classList.remove("resizing");
223
- // Update Tiptap node with new dimensions
224
- if (typeof getPos === "function") {
223
+ // Update Tiptap node with new dimensions at the specific position
224
+ const pos = typeof getPos === "function" ? getPos() : undefined;
225
+ if (typeof pos === "number") {
225
226
  const finalWidth = parseInt(img.getAttribute("width") || "0");
226
227
  const finalHeight = parseInt(img.getAttribute("height") || "0");
227
228
  if (finalWidth && finalHeight) {
228
- editor.commands.updateAttributes("resizableImage", {
229
+ editor.view.dispatch(editor.view.state.tr.setNodeMarkup(pos, undefined, {
230
+ ...node.attrs,
229
231
  width: finalWidth,
230
232
  height: finalHeight,
231
- });
233
+ }));
232
234
  }
233
235
  }
234
236
  document.removeEventListener("mousemove", handleMouseMove);