diff --git a/wiki/public/js/editor.js b/wiki/public/js/editor.js index afd57ffd..62b3a7bb 100644 --- a/wiki/public/js/editor.js +++ b/wiki/public/js/editor.js @@ -48,8 +48,9 @@ const saveWikiPage = (draft = false) => { const title = $(`.wiki-editor .ProseMirror h1`).html(); // markdown=1 tag is needed for older wiki content to properly render - const content = `
${editor - .getHTML() + // TODO: use editor.getHTML() instead of this when ueberdosis/tiptap#4044 is fixed + const content = `
${$(".editor-space .ProseMirror") + .html() .replace(/

.*?<\/h1>/, "")}

`; frappe.call({