Skip to content

Commit d9c1526

Browse files
committed
Resolve issue toggling checkboxes in WYSIWYG view
1 parent 69230d5 commit d9c1526

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

client/components/toastui/toastui-editor-overrides.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// Disable checkboxes in view mode. See https://github.com/nhn/tui.editor/issues/1087.
2-
.toastui-editor-contents li.task-list-item {
3-
pointer-events: none;
4-
a {
5-
pointer-events: auto;
6-
}
7-
}
8-
91
.ProseMirror,
102
.toastui-editor-defaultUI .ProseMirror,
113
.toastui-editor-md-container .toastui-editor-md-preview {

client/views/Note.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@
8686

8787
<!-- Content -->
8888
<div class="flex-1">
89-
<ToastViewer v-if="!editMode" :initialValue="note.content" />
89+
<ToastViewer
90+
v-if="!editMode"
91+
:initialValue="note.content"
92+
class="toast-viewer"
93+
/>
9094
<ToastEditor
9195
v-if="editMode"
9296
ref="toastEditor"
@@ -99,6 +103,17 @@
99103
</LoadingIndicator>
100104
</template>
101105

106+
<style>
107+
/* Disable checkboxes in view mode. See https://github.com/nhn/tui.editor/issues/1087. */
108+
.toast-viewer li.task-list-item {
109+
pointer-events: none;
110+
}
111+
.toast-viewer li.task-list-item a {
112+
pointer-events: auto;
113+
}
114+
</style>
115+
116+
102117
<script setup>
103118
import { mdiNoteOffOutline } from "@mdi/js";
104119
import {

0 commit comments

Comments
 (0)