2026-02-17 12:47:39 +05:30
|
|
|
"use client";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { createPlatePlugin } from "platejs/react";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
2026-02-17 12:47:39 +05:30
|
|
|
import { FixedToolbar } from "@/components/ui/fixed-toolbar";
|
|
|
|
|
import { FixedToolbarButtons } from "@/components/ui/fixed-toolbar-buttons";
|
2026-02-16 15:49:07 +05:30
|
|
|
|
|
|
|
|
export const FixedToolbarKit = [
|
2026-02-17 12:47:39 +05:30
|
|
|
createPlatePlugin({
|
|
|
|
|
key: "fixed-toolbar",
|
|
|
|
|
render: {
|
|
|
|
|
beforeEditable: () => (
|
|
|
|
|
<FixedToolbar>
|
|
|
|
|
<FixedToolbarButtons />
|
|
|
|
|
</FixedToolbar>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
}),
|
2026-02-16 15:49:07 +05:30
|
|
|
];
|