@flogeez/angular-tiptap-editor 0.2.3 → 0.2.4

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A modern, customizable rich-text editor for Angular applications, built with Tiptap and featuring complete internationalization support.
4
4
 
5
+ [![Try it on StackBlitz](https://img.shields.io/badge/Try%20it-StackBlitz-blue?style=for-the-badge&logo=stackblitz)](https://stackblitz.com/edit/angular-tiptap-editor)
6
+
5
7
  ## 🚀 Features
6
8
 
7
9
  - **Modern Angular**: Built with Angular 19+ and standalone components
@@ -3662,8 +3662,8 @@ class AngularTiptapEditorComponent {
3662
3662
  effect(() => {
3663
3663
  const editor = this.editor();
3664
3664
  const content = this.content();
3665
- if (editor && content !== editor.getHTML()) {
3666
- editor.commands.setContent(content, false);
3665
+ if (editor && content !== undefined && content !== editor.getHTML()) {
3666
+ this.setContent(content, false);
3667
3667
  }
3668
3668
  });
3669
3669
  // Effet pour mettre à jour les propriétés de hauteur
@@ -3884,7 +3884,7 @@ class AngularTiptapEditorComponent {
3884
3884
  writeValue(value) {
3885
3885
  const currentEditor = this.editor();
3886
3886
  if (currentEditor && value !== currentEditor.getHTML()) {
3887
- currentEditor.commands.setContent(value || "", false);
3887
+ this.setContent(value || "", false);
3888
3888
  }
3889
3889
  }
3890
3890
  registerOnChange(fn) {