mirror of https://github.com/buster-so/buster.git
17 lines
353 B
TypeScript
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]
|
|
}
|
|
})
|
|
];
|