2026-02-17 12:47:39 +05:30
|
|
|
"use client";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
|
|
|
|
import {
|
2026-02-17 12:47:39 +05:30
|
|
|
BoldPlugin,
|
|
|
|
|
CodePlugin,
|
|
|
|
|
HighlightPlugin,
|
|
|
|
|
ItalicPlugin,
|
|
|
|
|
StrikethroughPlugin,
|
|
|
|
|
SubscriptPlugin,
|
|
|
|
|
SuperscriptPlugin,
|
|
|
|
|
UnderlinePlugin,
|
|
|
|
|
} from "@platejs/basic-nodes/react";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { CodeLeaf } from "@/components/ui/code-node";
|
|
|
|
|
import { HighlightLeaf } from "@/components/ui/highlight-node";
|
2026-02-16 00:11:34 +05:30
|
|
|
|
|
|
|
|
export const BasicMarksKit = [
|
2026-02-17 12:47:39 +05:30
|
|
|
BoldPlugin,
|
|
|
|
|
ItalicPlugin,
|
|
|
|
|
UnderlinePlugin,
|
|
|
|
|
CodePlugin.configure({
|
|
|
|
|
node: { component: CodeLeaf },
|
|
|
|
|
shortcuts: { toggle: { keys: "mod+e" } },
|
|
|
|
|
}),
|
|
|
|
|
StrikethroughPlugin.configure({
|
|
|
|
|
shortcuts: { toggle: { keys: "mod+shift+x" } },
|
|
|
|
|
}),
|
|
|
|
|
SubscriptPlugin.configure({
|
|
|
|
|
shortcuts: { toggle: { keys: "mod+comma" } },
|
|
|
|
|
}),
|
|
|
|
|
SuperscriptPlugin.configure({
|
|
|
|
|
shortcuts: { toggle: { keys: "mod+period" } },
|
|
|
|
|
}),
|
|
|
|
|
HighlightPlugin.configure({
|
|
|
|
|
node: { component: HighlightLeaf },
|
|
|
|
|
shortcuts: { toggle: { keys: "mod+shift+h" } },
|
|
|
|
|
}),
|
2026-02-16 00:11:34 +05:30
|
|
|
];
|