Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize Rich text actions fields/UI elements #1015

Closed
lucashfreitas opened this issue Feb 8, 2022 · 2 comments
Closed

Customize Rich text actions fields/UI elements #1015

lucashfreitas opened this issue Feb 8, 2022 · 2 comments

Comments

@lucashfreitas
Copy link

Hello,

I am trying to develop a custom plugin that I need to customize the actions the user needs to do in a rich text, basically, the user can select a text block, clicks on a button, and modifies the original content when user clicks the button - I see that the rich text editor doesn't have any option to do so.

There is any way to fork a native implementation of the rich text component and implement those changes on my own?

Thanks,

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

Marking issue as stale since there was no acitivty for 30 days

@github-actions github-actions bot added the stale Used to mark when there was no activity for a set period of time label Aug 5, 2022
@max-barry
Copy link

This is an old issue, but thought I'd offer a thought I had on this today.

The Rich Text Editor is using Plate under the hood, and a list of plate plugins set here.

If the <RichTextEditor /> component that is exported took an optional list of "additional" Plate Plugins, then you could have a bit more extensibility for custom behavior in the Rich Text Editor. For example, to build custom Apps in the Contentful Field Editor UI that extends the base functionality.

I suspect that the difficult with exposing more of Plate to the end user, is ultimately you've got to maintain the same schema that the Rich Text Editor is used to consuming and storing. I don't know how much Plate JS and Contentful's Rich Document schema overlap and how much transforming is being done.

All those Rich Text Documents you get from Contentful have a data prop, but outside of hyperlinks I have never seen any data in it. I was looking to make a Plate plugin that could ultimately inject into that data space to help me pick my rendering components on the client.

@github-actions github-actions bot removed the stale Used to mark when there was no activity for a set period of time label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants