返回 presentation-ai
line-height-kit.tsx
根目录 / src / components / plate / plugins / line-height-kit.tsx
1 "use client";
2
3 import { LineHeightPlugin } from "@platejs/basic-styles/react";
4 import { KEYS } from "platejs";
5
6 export const LineHeightKit = [
7 LineHeightPlugin.configure({
8 inject: {
9 nodeProps: {
10 defaultNodeValue: 1.5,
11 validNodeValues: [1, 1.2, 1.5, 2, 3],
12 },
13 targetPlugins: [...KEYS.heading, KEYS.p],
14 },
15 }),
16 ];
17
17 lines Plain Text