feat: Markdown编辑器添加有序列表按钮支持
This commit is contained in:
1 parent
4f7e3795c0
commit
a0b52cee63
1 file changed
+9
@@ -15,6 +15,7 @@
|
|||||||
Italic,
|
Italic,
|
||||||
Link,
|
Link,
|
||||||
List,
|
List,
|
||||||
|
ListOrdered,
|
||||||
SquareSplitVertical,
|
SquareSplitVertical,
|
||||||
Strikethrough
|
Strikethrough
|
||||||
} from 'lucide-svelte';
|
} from 'lucide-svelte';
|
||||||
@@ -257,6 +258,14 @@
|
|||||||
>
|
>
|
||||||
<List aria-hidden="true" />
|
<List aria-hidden="true" />
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="md-btn"
|
||||||
|
onclick={() => insertAtCursor('1. ', '', '列表项')}
|
||||||
|
title="有序列表"
|
||||||
|
>
|
||||||
|
<ListOrdered aria-hidden="true" />
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="md-btn"
|
class="md-btn"
|
||||||
|
|||||||
Reference in new issue
Block a user