Integrations
Learn how to seamlessly integrate the Rich Text Editor content into your Framer projects. This guide covers fetching CMS data, using the Rich Text Renderer component, and best practices for embedding rich text in your site layouts.
The Framer CMS Rich Text Editor is a powerful content editing tool built to seamlessly integrate with your Framer projects. It allows you to create and manage rich, formatted content directly within the CMS, making your content dynamic and easy to update without touching code.
This guide walks you through the basics of setting up and using the Rich Text Editor in your Framer CMS-powered site.
What is the Rich Text Editor?
The Rich Text Editor (RTE) is a WYSIWYG content field that supports text formatting, links, images, lists, and embedded media. It offers your content creators a flexible interface to add rich content without needing technical skills.
Under the hood, the editor stores content as structured JSON, which the Framer site renders into HTML dynamically.
Setting Up the Rich Text Editor Field in CMS
To use the Rich Text Editor in your project’s CMS:
Step 1: Define the Rich Text Field in Your Collection
When creating or editing a CMS Collection, add a new field and select the Rich Text type.
Step 2: Populate Content with the Editor
In the CMS admin panel, the body
field will provide a rich text editor interface. Authors can add headings, paragraphs, links, lists, and media using toolbar controls.
Rendering Rich Text Content in Framer
The Rich Text Editor stores content as structured JSON, which needs to be rendered properly on your site.
Step 1: Fetch CMS Content
Fetch the content from your CMS, typically as part of the data fetching lifecycle.
Step 2: Render Using the Rich Text Renderer
Use the Rich Text Renderer component or utility provided by Framer to parse the JSON and display it as HTML.
The renderer handles converting JSON nodes into proper HTML elements with formatting.
Customizing the Rich Text Editor
You can tailor the Rich Text Editor to fit your brand’s style and content needs.
Enabling or Disabling Formatting Options
Control which formatting tools appear in the editor toolbar:
Styling Rendered Content
Customize the CSS for rich text output to match your site’s design system.
Advanced Usage
Embedding Custom Components
Extend the editor to support embedding custom interactive components, such as videos, charts, or callouts.
Handling Links with Tracking
Intercept links inside rich text to add custom behavior, like tracking clicks or opening in new tabs.
Troubleshooting Tips
Content not rendering? Ensure the Rich Text Renderer component is imported and used properly.
Formatting options missing? Check your editor configuration to confirm toolbar options are enabled.
Custom styles not applied? Verify your CSS selectors match the rendered output structure.
Images not displaying? Confirm image URLs are accessible and the CMS field supports media embedding.
By leveraging the Framer CMS Rich Text Editor, you empower content teams to maintain rich, formatted content with ease—while keeping your site flexible and performant. With proper setup and customization, it becomes a cornerstone of your dynamic web experience.