Description
Currently, we don't expose the rich text inline editor. This creates problems when you need to customize inline editing with additional logic or features through a field transform while keeping the same functionality Puck uses. It leaves you with two options: disabling inline editing or reimplementing everything.
Proposal
We currently have the factory that defines the transform for inline rich text editing here:
|
export const getRichTextTransform = (): FieldTransforms => ({ |
I propose extracting the component inside the factory and exposing it as InlineRichTextEditor.
This should be simple enough, and it would allow people to add any required React logic around it.
Description
Currently, we don't expose the rich text inline editor. This creates problems when you need to customize inline editing with additional logic or features through a field transform while keeping the same functionality Puck uses. It leaves you with two options: disabling inline editing or reimplementing everything.
Proposal
We currently have the factory that defines the transform for inline rich text editing here:
puck/packages/core/lib/field-transforms/default-transforms/rich-text-transform.tsx
Line 152 in 208b221
I propose extracting the component inside the factory and exposing it as
InlineRichTextEditor.This should be simple enough, and it would allow people to add any required React logic around it.