mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-18 14:48:12 +00:00
20 lines
520 B
TypeScript
20 lines
520 B
TypeScript
'use client';
|
|
|
|
import { HorizontalRulePlugin } from '@udecode/plate-horizontal-rule/react';
|
|
import { ImagePlugin, MediaEmbedPlugin } from '@udecode/plate-media/react';
|
|
import { DeletePlugin, SelectOnBackspacePlugin } from '@udecode/plate-select';
|
|
|
|
export const deletePlugins = [
|
|
SelectOnBackspacePlugin.configure({
|
|
options: {
|
|
query: {
|
|
allow: [
|
|
ImagePlugin.key,
|
|
MediaEmbedPlugin.key,
|
|
HorizontalRulePlugin.key,
|
|
],
|
|
},
|
|
},
|
|
}),
|
|
DeletePlugin,
|
|
] as const;
|