@flogeez/angular-tiptap-editor 3.1.1 → 3.1.2

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/index.d.ts CHANGED
@@ -710,6 +710,8 @@ declare class AteEditorCommandsService {
710
710
  insertImage(editor: Editor, options?: AteImageUploadOptions): Promise<void>;
711
711
  uploadImage(editor: Editor, file: File, options?: AteImageUploadOptions): Promise<void>;
712
712
  downloadImage(editor: Editor): void;
713
+ handleImageDrop(editor: Editor, event: DragEvent, options?: AteImageUploadOptions): boolean;
714
+ handleImagePaste(editor: Editor, event: ClipboardEvent, options?: AteImageUploadOptions): boolean;
713
715
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AteEditorCommandsService, never>;
714
716
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AteEditorCommandsService>;
715
717
  }
@@ -1271,7 +1273,7 @@ declare class AngularTiptapEditorComponent implements AfterViewInit, OnDestroy {
1271
1273
  private updateCharacterCount;
1272
1274
  onDragOver(event: DragEvent): void;
1273
1275
  onDrop(event: DragEvent): void;
1274
- private insertImageFromFile;
1276
+ private getImageUploadOptions;
1275
1277
  getHTML(): string;
1276
1278
  getJSON(): JSONContent | undefined;
1277
1279
  getText(): string;
@@ -1402,6 +1404,15 @@ declare class AteImageService {
1402
1404
  selectAndReplaceImage(editor: Editor, options?: AteImageUploadOptions): Promise<void>;
1403
1405
  /** Internal helper used by replacement logic */
1404
1406
  uploadAndReplaceImage(editor: Editor, file: File, options?: AteImageUploadOptions): Promise<void>;
1407
+ /**
1408
+ * Handle image drop event.
1409
+ * Calculates the position from coordinates and sets the selection accordingly.
1410
+ */
1411
+ handleDrop(editor: Editor, event: DragEvent, options?: AteImageUploadOptions): boolean;
1412
+ /**
1413
+ * Handle image paste event.
1414
+ */
1415
+ handlePaste(editor: Editor, event: ClipboardEvent, options?: AteImageUploadOptions): boolean;
1405
1416
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AteImageService, never>;
1406
1417
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AteImageService>;
1407
1418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flogeez/angular-tiptap-editor",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A modern, customizable rich-text editor for Angular (18+), built with Tiptap and featuring complete internationalization support",
5
5
  "keywords": [
6
6
  "angular",