(dangerouslyAllowAttributes: boolean)
| 389 | ); |
| 390 | |
| 391 | const getParagraphPlugin = (dangerouslyAllowAttributes: boolean) => |
| 392 | createPlatePlugin({ |
| 393 | key: 'p', |
| 394 | node: { |
| 395 | component: ParagraphElement, |
| 396 | dangerouslyAllowAttributes: dangerouslyAllowAttributes |
| 397 | ? ['data-my-paragraph-attribute'] |
| 398 | : undefined, |
| 399 | isElement: true, |
| 400 | }, |
| 401 | }); |
| 402 | |
| 403 | const getBoldPlugin = (dangerouslyAllowAttributes: boolean) => |
| 404 | createPlatePlugin({ |
no test coverage detected
searching dependent graphs…