diff --git a/libs/tiptap-editor/package-lock.json b/libs/tiptap-editor/package-lock.json index 6e01328..1bed291 100644 --- a/libs/tiptap-editor/package-lock.json +++ b/libs/tiptap-editor/package-lock.json @@ -769,6 +769,7 @@ "resolved": "https://registry.npmmirror.com/@tiptap/core/-/core-3.25.0.tgz", "integrity": "sha512-I9edH6vUXgbjUl5GPICYYYQeql8hC77VZnHLvWg8wc7FwaOw242Uy4Y89c/eX7LGmKwVxz28JFvAsZ8tIdDVvg==", "license": "MIT", + "peer": true, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" @@ -985,6 +986,7 @@ "resolved": "https://registry.npmmirror.com/@tiptap/extension-list/-/extension-list-3.25.0.tgz", "integrity": "sha512-bYw4o2YiTdj/tdgktgbMRUfqAJgsnRkwUQTTKElycPdIwlNNs6EQiXku+E2ACftLaFxd3Ek+P50H0AQ5fA/hPw==", "license": "MIT", + "peer": true, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" @@ -1118,6 +1120,7 @@ "resolved": "https://registry.npmmirror.com/@tiptap/extensions/-/extensions-3.25.0.tgz", "integrity": "sha512-aRXZwOPLdIRey28uctNT/Nbh3EaiNYnKt5qBhBbxs5aTtwoExzYAEtR7D8KjpUVBJAZNeLwFxvD2Ub+F94uAAw==", "license": "MIT", + "peer": true, "funding": { "type": "github", "url": "https://github.com/sponsors/ueberdosis" @@ -1149,6 +1152,7 @@ "resolved": "https://registry.npmmirror.com/@tiptap/pm/-/pm-3.25.0.tgz", "integrity": "sha512-JeaVgyLj0gQZ1gVxDI73QkP+/Ozcjyp37HyL1pXLCRVjY8nnsDrdMzuKsP1SWN2fOhC+JBGW8/88g0rPmwZQFg==", "license": "MIT", + "peer": true, "dependencies": { "prosemirror-changeset": "^2.3.0", "prosemirror-commands": "^1.6.2", diff --git a/libs/tiptap-editor/src/index.ts b/libs/tiptap-editor/src/index.ts index ea6cb13..061a123 100644 --- a/libs/tiptap-editor/src/index.ts +++ b/libs/tiptap-editor/src/index.ts @@ -119,7 +119,7 @@ class TiptapEditorInstance { } setMarkdown(content: string): void { - this.editor?.commands.setContent(content, false, { contentType: 'markdown' }) + this.editor?.commands.setContent(content, { emitUpdate: false, contentType: 'markdown' }) } getHTML(): string {