Skip to content

Commit

Permalink
fix: colgroup size not being saved
Browse files Browse the repository at this point in the history
fix #164
  • Loading branch information
BreadGenie committed Jul 3, 2023
1 parent 2ddadf9 commit 989dbde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wiki/public/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<div markdown="1">${editor
.getHTML()
// TODO: use editor.getHTML() instead of this when ueberdosis/tiptap#4044 is fixed
const content = `<div markdown="1">${$(".editor-space .ProseMirror")
.html()
.replace(/<h1>.*?<\/h1>/, "")}</div>`;

frappe.call({
Expand Down

0 comments on commit 989dbde

Please sign in to comment.