feat: introduce fixed toolbar and insert button for enhanced editor functionality

This commit is contained in:
Anish Sarkar 2026-02-16 15:49:07 +05:30
parent 73147c69a3
commit 1450e22f54
8 changed files with 359 additions and 87 deletions

View file

@ -0,0 +1,20 @@
'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>
),
},
}),
];