-
Notifications
You must be signed in to change notification settings - Fork 411
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
[portable-text] Allow customization of user-defined styles #373
Comments
Offering a separate menu and editor preview override would be a great addition for scenarios where the style is very large. Would be great to create a smaller version of a style so the dropdown menu doesn't get too crazy. On a related note, I created a separate feature request for the separation of the HTML element from the style itself: #1929. |
Is this going to make it into V3? |
I believe this is solved with the |
@kmelve This is still an issue for me on v3 using the component property. Can you verify? |
Hi - I highly recommend that this issue be opened again as previewing text block styles in the The documentation says it works (https://www.sanity.io/docs/customizing-the-portable-text-editor#14d3f8b767ae) though the code appears to say otherwise. |
When defining your own styles, e.g.
The dropdown will render the Proptip choice, but you have no control over:
I'm not sure what the best solution would be. Maybe custom styles could accept custom components for rendering?
For example:
The text was updated successfully, but these errors were encountered: