fix(tiptap-editor): correct setContent call signature for markdown parsing
This commit is contained in:
parent
72b932c21b
commit
ad208a4603
4
libs/tiptap-editor/package-lock.json
generated
4
libs/tiptap-editor/package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user