Skip to content

Commit f1b59cb

Browse files
committed
feat: Update package version to 0.0.26 and adjust content handling in ExitusTiptapEditor
1 parent d6bfb79 commit f1b59cb

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

projects/ngx-exitus-tiptap-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-exitus-tiptap-editor",
3-
"version": "0.0.24",
3+
"version": "0.0.26",
44
"description": "Angular bindings and components for a Tiptap-based rich text editor with Math/Katex support.",
55
"author": "marcelinombb",
66
"license": "MIT",

projects/ngx-exitus-tiptap-editor/src/lib/exitus-tiptap-editor.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,14 @@ export class ExitusTiptapEditor implements OnDestroy {
135135
...TableExtensions,
136136
SpellCheckerExtension.configure(this.extensionsConfig()?.spellChecker),
137137
],
138-
content: this.content(),
138+
//content: this.content(),
139139
onUpdate: ({ editor }) => {
140140
const html = editor.getHTML();
141141
this.onContentChange.emit(html);
142142
},
143143
onCreate: ({ editor }) => {
144-
const html = editor.getHTML();
144+
editor.commands.setContent(this.content());
145145
this.onEditorReady.emit(editor);
146-
this.onContentChange.emit(html);
147146
},
148147
});
149148

0 commit comments

Comments
 (0)