添加列表样式及缩进菜单

This commit is contained in:
wux_labs
2025-02-18 11:30:25 +08:00
parent 7ebb20813c
commit 52131519e3
15 changed files with 1135 additions and 13 deletions
+8
View File
@@ -14,6 +14,10 @@ import { TextStyle } from "@tiptap/extension-text-style";
import { Underline } from "@tiptap/extension-underline";
import FontSize from "../extensions/FontSize.ts";
import Indent from "../extensions/Indent.ts";
import LineHeight from "../extensions/LineHeight.ts";
import BulletList from "../extensions/BulletList.ts";
import OrderedList from "../extensions/OrderedList.ts";
/**
* 定义编辑器的所有自定义扩展组件
@@ -27,6 +31,7 @@ export const allExtensions = (uaiEditor: UAIEditor, _options: UAIEditorOptions):
bulletList: false,
orderedList: false,
}),
BulletList,
Color,
FontFamily,
FontSize.configure({
@@ -35,6 +40,9 @@ export const allExtensions = (uaiEditor: UAIEditor, _options: UAIEditorOptions):
Highlight.configure({
multicolor: true
}),
Indent,
LineHeight,
OrderedList,
Subscript,
Superscript,
TextStyle,