| 1 | import { BaseLineHeightPlugin } from "@platejs/basic-styles"; |
| 2 | import { KEYS } from "platejs"; |
| 3 | |
| 4 | export const BaseLineHeightKit = [ |
| 5 | BaseLineHeightPlugin.configure({ |
| 6 | inject: { |
| 7 | nodeProps: { |
| 8 | defaultNodeValue: 1.5, |
| 9 | validNodeValues: [1, 1.2, 1.5, 2, 3], |
| 10 | }, |
| 11 | targetPlugins: [...KEYS.heading, KEYS.p], |
| 12 | }, |
| 13 | }), |
| 14 | ]; |
| 15 |