20 lines
360 B
TypeScript
20 lines
360 B
TypeScript
import { BaseIndentPlugin } from '@platejs/indent';
|
|
import { KEYS } from 'platejs';
|
|
|
|
export const BaseIndentKit = [
|
|
BaseIndentPlugin.configure({
|
|
inject: {
|
|
targetPlugins: [
|
|
...KEYS.heading,
|
|
KEYS.p,
|
|
KEYS.blockquote,
|
|
KEYS.codeBlock,
|
|
KEYS.toggle,
|
|
],
|
|
},
|
|
options: {
|
|
offset: 24,
|
|
},
|
|
}),
|
|
];
|