refactor editor

This commit is contained in:
Timi
2026-08-25 17:35:19 +08:00
parent 0c5a4d4fd9
commit 6fa75b3045
44 changed files with 334 additions and 3608 deletions
+15
View File
@@ -0,0 +1,15 @@
/** 编辑器公共能力出口。平台组件只依赖这里的无界面逻辑和类型。 */
export * from "./article";
export * from "./code";
export * from "./notify";
export * from "./search";
export * from "./tiptap/shared";
export * from "./tiptap/extensions";
export * from "./tiptap/useTiptapEditor";
export * from "./tiptap/useTiptapView";
export type { Article, ArticleContentType } from "../types/Article";
export type { Attachment } from "../types/Attachment";
export type { NotifyDetail } from "../types/Notify";
export { default as AttachmentAPI } from "../api/AttachmentAPI";
export { default as PrismCodeBlock } from "./tiptap/PrismCodeBlock";
export { enhancePrismCodeBlock } from "./tiptap/PrismCodeBlockView";