Skip to content

Commit

Permalink
ai leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Oct 25, 2024
1 parent 69b001a commit 94c9aeb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import React, { useRef } from 'react';
import { cn, withProps } from '@udecode/cn';
import { AIPlugin } from '@udecode/plate-ai/react';
import { AlignPlugin } from '@udecode/plate-alignment/react';
import { AutoformatPlugin } from '@udecode/plate-autoformat/react';
import {
Expand Down Expand Up @@ -132,6 +133,7 @@ import { TableRowElement } from '@/components/plate-ui/table-row-element';
import { TodoListElement } from '@/components/plate-ui/todo-list-element';
import { withDraggables } from '@/components/plate-ui/with-draggables';

import { AILeaf } from './plate-ui/ai-leaf';
import { BlockContextMenu } from './plate-ui/block-context-menu';
import { DateElement } from './plate-ui/date-element';
import { SlashInputElement } from './plate-ui/slash-input-element';
Expand Down Expand Up @@ -435,6 +437,7 @@ export const useMyEditor = () => {
override: {
components: withDraggables(
withPlaceholders({
[AIPlugin.key]: AILeaf,
[DatePlugin.key]: DateElement,
[SlashInputPlugin.key]: SlashInputElement,
[TogglePlugin.key]: ToggleElement,
Expand Down

0 comments on commit 94c9aeb

Please sign in to comment.