Skip to content

Commit

Permalink
columns
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Oct 26, 2024
1 parent 5a2c408 commit fa3ff55
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import { IndentListPlugin } from '@udecode/plate-indent-list/react';
import { IndentPlugin } from '@udecode/plate-indent/react';
import { JuicePlugin } from '@udecode/plate-juice';
import { KbdPlugin } from '@udecode/plate-kbd/react';
import { ColumnItemPlugin, ColumnPlugin } from '@udecode/plate-layout/react';
import { LineHeightPlugin } from '@udecode/plate-line-height/react';
import { LinkPlugin } from '@udecode/plate-link/react';
import { TodoListPlugin } from '@udecode/plate-list/react';
Expand Down Expand Up @@ -133,6 +134,8 @@ import { withDraggables } from '@/components/plate-ui/with-draggables';
import { SettingsDialog } from './openai/settings-dialog';
import { AILeaf } from './plate-ui/ai-leaf';
import { BlockContextMenu } from './plate-ui/block-context-menu';
import { ColumnElement } from './plate-ui/column-element';
import { ColumnGroupElement } from './plate-ui/column-group-element';
import { DateElement } from './plate-ui/date-element';
import { SlashInputElement } from './plate-ui/slash-input-element';
import { TocElement } from './plate-ui/toc-element';
Expand Down Expand Up @@ -208,6 +211,8 @@ export const useMyEditor = () => {
TableCellHeaderPlugin,
TodoListPlugin,
ExcalidrawPlugin,
ColumnPlugin,
ColumnItemPlugin,

// Marks
BoldPlugin,
Expand Down Expand Up @@ -439,6 +444,8 @@ export const useMyEditor = () => {
[CodeBlockPlugin.key]: CodeBlockElement,
[CodeLinePlugin.key]: CodeLineElement,
[TocPlugin.key]: TocElement,
[ColumnItemPlugin.key]: ColumnElement,
[ColumnPlugin.key]: ColumnGroupElement,
[CodeSyntaxPlugin.key]: CodeSyntaxLeaf,
[HorizontalRulePlugin.key]: HrElement,
[HEADING_KEYS.h1]: withProps(HeadingElement, { variant: 'h1' }),
Expand Down

0 comments on commit fa3ff55

Please sign in to comment.