File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ const saveWikiPage = (draft = false) => {
49
49
const isEmptyEditor = ! ! urlParams . get ( "newWiki" ) ;
50
50
51
51
const title = $ ( `.wiki-editor .ProseMirror h1` ) . html ( ) ;
52
+ // mock tiptap edit mode for task-list
53
+ // will be made redundant once editor.getHTML() is used to load content for saving
54
+ $ ( '[data-type="taskList"] > li' ) . attr ( 'data-type' , 'taskItem' ) ;
52
55
// markdown=1 tag is needed for older wiki content to properly render
53
56
// TODO: use editor.getHTML() instead of this when ueberdosis/tiptap#4044 is fixed
54
57
const content = `<div markdown="1">${ $ ( ".editor-space .ProseMirror" )
@@ -425,4 +428,4 @@ $('ul[data-type=taskList] input[type=checkbox]').click(function(){
425
428
426
429
if ( ! urlParams . get ( "newWiki" ) && ! urlParams . get ( "editWiki" ) )
427
430
return false ;
428
- } ) ;
431
+ } ) ;
You can’t perform that action at this time.
0 commit comments