MCPcopy
hub / github.com/udecode/plate / getParagraphPlugin

Function getParagraphPlugin

packages/core/src/react/components/Plate.slow.tsx:391–401  ·  view source on GitHub ↗
(dangerouslyAllowAttributes: boolean)

Source from the content-addressed store, hash-verified

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({

Callers 1

EditorFunction · 0.85

Calls 1

createPlatePluginFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…