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 端的默认编辑器支持被扩展 ``` |
||
---|---|---|
.. | ||
.changeset | ||
.husky | ||
.vscode | ||
cypress | ||
docs | ||
packages | ||
public | ||
src | ||
.editorconfig | ||
.env.development | ||
.env.production | ||
.eslintrc.cjs | ||
.gitignore | ||
.gitpod.yml | ||
.npmignore | ||
.npmrc | ||
.prettierignore | ||
Makefile | ||
OWNERS | ||
README.md | ||
cypress.json | ||
env.d.ts | ||
index.html | ||
package.json | ||
pnpm-lock.yaml | ||
pnpm-workspace.yaml | ||
postcss.config.js | ||
prettier.config.js | ||
tailwind.config.js | ||
tsconfig.app.json | ||
tsconfig.json | ||
tsconfig.node.json | ||
tsconfig.vitest.json | ||
vite.config.ts | ||
vitest.config.ts |