Skip to content

Commit 32c2654

Browse files
committed
chore: format using prettier
1 parent 1be6068 commit 32c2654

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

wiki/public/js/editor.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { Editor, InputRule } from "@tiptap/core";
1111
import Placeholder from "@tiptap/extension-placeholder";
1212
import TableHeader from "@tiptap/extension-table-header";
1313
import CodeBlockLowlight from "@tiptap/extension-code-block-lowlight";
14-
import TaskItem from '@tiptap/extension-task-item';
15-
import TaskList from '@tiptap/extension-task-list';
14+
import TaskItem from "@tiptap/extension-task-item";
15+
import TaskList from "@tiptap/extension-task-list";
1616

1717
const CustomDocument = Document.extend({
1818
content: "heading block*",
@@ -51,7 +51,7 @@ const saveWikiPage = (draft = false) => {
5151
const title = $(`.wiki-editor .ProseMirror h1`).html();
5252
// mock tiptap edit mode for task-list
5353
// will be made redundant once editor.getHTML() is used to load content for saving
54-
$('[data-type="taskList"] > li').attr('data-type', 'taskItem');
54+
$('[data-type="taskList"] > li').attr("data-type", "taskItem");
5555
// markdown=1 tag is needed for older wiki content to properly render
5656
// TODO: use editor.getHTML() instead of this when ueberdosis/tiptap#4044 is fixed
5757
const content = `<div markdown="1">${$(".editor-space .ProseMirror")
@@ -423,9 +423,8 @@ $(".edit-wiki-btn").on("click", () => {
423423
});
424424

425425
// TODO: Remove once ueberdosis/tiptap#3676 is fixed
426-
$('ul[data-type=taskList] input[type=checkbox]').click(function(){
427-
const urlParams = new URLSearchParams(window.location.search);
426+
$("ul[data-type=taskList] input[type=checkbox]").click(function () {
427+
const urlParams = new URLSearchParams(window.location.search);
428428

429-
if(!urlParams.get("newWiki") && !urlParams.get("editWiki"))
430-
return false;
429+
if (!urlParams.get("newWiki") && !urlParams.get("editWiki")) return false;
431430
});

0 commit comments

Comments
 (0)