mirror of https://github.com/halo-dev/halo
#### What type of PR is this? /area console /kind feature /milestone 2.7.x #### What this PR does / why we need it: 默认编辑器支持扩展,包括输入类型、工具栏、Slash Command 等。 Ref https://github.com/halo-sigs/richtext-editor/pull/16 ## 定义方式 ```ts import ExtensionFoo from "./tiptap/extension-foo.ts" export default definePlugin({ extensionPoints: { "default:editor:extension:create": () => { return [ExtensionFoo]; }, }, }); ``` 其中,`ExtensionFoo` 是一个 Tiptap Extension,可以参考 [Tiptap 文档](https://tiptap.dev/) 和 [https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md](https://github.com/halo-sigs/richtext-editor/blob/main/docs/extension.md)。 #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/4028 #### Does this PR introduce a user-facing change? ```release-note Console 端的默认编辑器支持被扩展 ``` |
||
|---|---|---|
| .. | ||
| src | ||
| .eslintrc.cjs | ||
| env.d.ts | ||
| package.json | ||
| prettier.config.js | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| tsconfig.vitest.json | ||
| vite.config.ts | ||