28 lines
771 B
TypeScript
28 lines
771 B
TypeScript
import {
|
|
BaseBoldPlugin,
|
|
BaseCodePlugin,
|
|
BaseHighlightPlugin,
|
|
BaseItalicPlugin,
|
|
BaseKbdPlugin,
|
|
BaseStrikethroughPlugin,
|
|
BaseSubscriptPlugin,
|
|
BaseSuperscriptPlugin,
|
|
BaseUnderlinePlugin,
|
|
} from '@platejs/basic-nodes';
|
|
|
|
import { CodeLeafStatic } from '@/components/ui/code-node-static';
|
|
import { HighlightLeafStatic } from '@/components/ui/highlight-node-static';
|
|
import { KbdLeafStatic } from '@/components/ui/kbd-node-static';
|
|
|
|
export const BaseBasicMarksKit = [
|
|
BaseBoldPlugin,
|
|
BaseItalicPlugin,
|
|
BaseUnderlinePlugin,
|
|
BaseCodePlugin.withComponent(CodeLeafStatic),
|
|
BaseStrikethroughPlugin,
|
|
BaseSubscriptPlugin,
|
|
BaseSuperscriptPlugin,
|
|
BaseHighlightPlugin.withComponent(HighlightLeafStatic),
|
|
BaseKbdPlugin.withComponent(KbdLeafStatic),
|
|
];
|