buster/apps/web/src/components/ui/report/plugins/line-height-kit.tsx

17 lines
353 B
TypeScript

'use client';
import { LineHeightPlugin } from '@platejs/basic-styles/react';
import { KEYS } from 'platejs';
export const LineHeightKit = [
LineHeightPlugin.configure({
inject: {
nodeProps: {
defaultNodeValue: 1.5,
validNodeValues: [1, 1.2, 1.5, 2, 3]
},
targetPlugins: [...KEYS.heading, KEYS.p]
}
})
];