Skip to content

Commit

Permalink
pref: export necessary extensions externally (#5104)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind improvement
/area editor
/milestone 2.12.x

#### What this PR does / why we need it:

导出一些必要的默认编辑器扩展及工具类,例如 `Paragraph`

#### Which issue(s) this PR fixes:

Fixes #5103 

#### Does this PR introduce a user-facing change?
```release-note
导出必要的默认编辑器扩展及工具类
```
  • Loading branch information
LIlGG authored Dec 24, 2023
1 parent cdd5cb4 commit a1fe8c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions console/packages/editor/src/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ExtensionOrderedList from "./ordered-list";
import ExtensionTaskList from "./task-list";
import ExtensionTable from "./table";
import ExtensionTextAlign from "./text-align";
import ExtensionTextStyle from "@tiptap/extension-text-style";
import ExtensionLink from "./link";
import ExtensionColor from "./color";
import ExtensionFontSize from "./font-size";
Expand All @@ -23,6 +24,7 @@ import ExtensionGapcursor from "@tiptap/extension-gapcursor";
import ExtensionHardBreak from "@tiptap/extension-hard-break";
import ExtensionHorizontalRule from "@tiptap/extension-horizontal-rule";
import ExtensionDocument from "@tiptap/extension-document";
import ExtensionParagraph from "./paragraph";
import ExtensionPlaceholder from "@tiptap/extension-placeholder";
import { i18n } from "@/locales";

Expand Down Expand Up @@ -118,10 +120,12 @@ export {
ExtensionTaskList,
ExtensionLink,
ExtensionTextAlign,
ExtensionTextStyle,
ExtensionUnderline,
ExtensionTable,
ExtensionSubscript,
ExtensionSuperscript,
ExtensionParagraph,
ExtensionPlaceholder,
ExtensionHighlight,
ExtensionCommands,
Expand Down
1 change: 1 addition & 0 deletions console/packages/editor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export default plugin;
export * from "./tiptap";
export * from "./extensions";
export * from "./components";
export * from "./utils";

0 comments on commit a1fe8c3

Please sign in to comment.