Skip to content

Commit 38e5c74

Browse files
committed
chore: remove unnecessary stuff from markdown editor
1 parent 75724a7 commit 38e5c74

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

frontend/app/components/admin/MarkdownEditor.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ const toolbarItems = [
7474
isActive: () => editor.value?.isActive('orderedList'),
7575
title: 'Ordered List',
7676
},
77-
{ type: 'divider' },
78-
{
79-
icon: 'i-lucide-undo',
80-
action: () => editor.value?.chain().focus().undo().run(),
81-
isActive: () => false,
82-
disabled: () => !editor.value?.can().undo(),
83-
title: 'Undo',
84-
},
85-
{
86-
icon: 'i-lucide-redo',
87-
action: () => editor.value?.chain().focus().redo().run(),
88-
isActive: () => false,
89-
disabled: () => !editor.value?.can().redo(),
90-
title: 'Redo',
91-
},
9277
]
9378
</script>
9479

@@ -106,10 +91,9 @@ const toolbarItems = [
10691
<UButton
10792
v-else
10893
:icon="item.icon"
109-
variant="ghost"
11094
size="xs"
111-
:color="item.isActive?.() ? 'primary' : 'neutral'"
112-
:disabled="item.disabled?.()"
95+
square
96+
:variant="item.isActive?.() ? 'soft' : 'ghost'"
11397
:title="item.title"
11498
@click="
11599
() => {

0 commit comments

Comments
 (0)