SurfSense/surfsense_web/components/editor/plugins/fixed-toolbar-kit.tsx

20 lines
411 B
TypeScript
Raw Normal View History

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