mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
21 lines
439 B
TypeScript
21 lines
439 B
TypeScript
|
|
'use client';
|
||
|
|
|
||
|
|
import { createPlatePlugin } from 'platejs/react';
|
||
|
|
|
||
|
|
import { FixedToolbar } from '@/components/ui/fixed-toolbar';
|
||
|
|
import { FixedToolbarButtons } from '@/components/ui/fixed-toolbar-buttons';
|
||
|
|
|
||
|
|
export const FixedToolbarKit = [
|
||
|
|
createPlatePlugin({
|
||
|
|
key: 'fixed-toolbar',
|
||
|
|
render: {
|
||
|
|
beforeEditable: () => (
|
||
|
|
<FixedToolbar>
|
||
|
|
<FixedToolbarButtons />
|
||
|
|
</FixedToolbar>
|
||
|
|
),
|
||
|
|
},
|
||
|
|
}),
|
||
|
|
];
|
||
|
|
|