Resolve issue toggling checkboxes in WYSIWYG view
authorAdam Dullage <redacted>
Sat, 25 May 2024 05:50:11 +0000 (07:50 +0200)
committerAdam Dullage <redacted>
Sat, 25 May 2024 05:50:11 +0000 (07:50 +0200)
client/components/toastui/toastui-editor-overrides.scss
client/views/Note.vue

index 81665e7a5aacb4f41e0629fb4969c2bafbec9d3f..685379bec58983216d854e123a329b06d64dab3d 100644 (file)
@@ -1,11 +1,3 @@
-// Disable checkboxes in view mode. See https://github.com/nhn/tui.editor/issues/1087.
-.toastui-editor-contents li.task-list-item {
-  pointer-events: none;
-  a {
-    pointer-events: auto;
-  }
-}
-
 .ProseMirror,
 .toastui-editor-defaultUI .ProseMirror,
 .toastui-editor-md-container .toastui-editor-md-preview {
index adb37e36b2dbe34005456ffbe9295bdf2c0d9590..69ca6301c931a713a17b09dd8a55e8362b4f8e5e 100644 (file)
 
     <!-- Content -->
     <div class="flex-1">
-      <ToastViewer v-if="!editMode" :initialValue="note.content" />
+      <ToastViewer
+        v-if="!editMode"
+        :initialValue="note.content"
+        class="toast-viewer"
+      />
       <ToastEditor
         v-if="editMode"
         ref="toastEditor"
   </LoadingIndicator>
 </template>
 
+<style>
+/* Disable checkboxes in view mode. See https://github.com/nhn/tui.editor/issues/1087. */
+.toast-viewer li.task-list-item {
+  pointer-events: none;
+}
+.toast-viewer li.task-list-item a {
+  pointer-events: auto;
+}
+</style>
+
+
 <script setup>
 import { mdiNoteOffOutline } from "@mdi/js";
 import {
git clone https://git.99rst.org/PROJECT