22 lines
369 B
TypeScript
22 lines
369 B
TypeScript
'use client';
|
|
|
|
import { IndentPlugin } from '@platejs/indent/react';
|
|
import { KEYS } from 'platejs';
|
|
|
|
export const IndentKit = [
|
|
IndentPlugin.configure({
|
|
inject: {
|
|
targetPlugins: [
|
|
...KEYS.heading,
|
|
KEYS.p,
|
|
KEYS.blockquote,
|
|
KEYS.codeBlock,
|
|
KEYS.toggle,
|
|
],
|
|
},
|
|
options: {
|
|
offset: 24,
|
|
},
|
|
}),
|
|
];
|