Global Rich Text Custom Labels

Is there a way to create a global config to add a custom label to the Rich Text options? I know you can do so on a field to field bases but we need it available on every Rich Text field. I am not seeing anything in the docs. Thanks!

Hello @nickberens360

Welcome to the Prismic community, and thanks for posting this question to us.

You can customize the HTML output of a Rich Text Field with a custom HTML Serializer. An HTML Serializer defines how Rich Text content/elements should be interpreted in your code. Learn more about HTML Serializer.. This will be helpful if you want to apply some changes/attributes to an individual element of any rich text of your site. For managing global configs, you can manage it using a JSON/file on the Front end itself and use its values in the HTML serializer.

I hope it answers your question. Let me know if you have any further questions. I'd like to learn more about your use case.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.