Webflow does not directly allow you to set an ID on a parent node of a Rich Text field via the CMS Editor or Designer panel. However, there are a few reliable workarounds.
1. Use a Wrapper Div Around the Rich Text Element
- Drag a Div Block onto your page in the Designer.
- Assign an ID to this Div Block using the Element Settings panel.
- Place the Rich Text Element inside this Div Block.
- This wrapper div becomes the parent node with the desired ID.
2. Add an ID via Custom Attributes (Advanced Workaround)
- While not recommended for beginners, you can use custom code to assign an ID dynamically.
- Add a custom attribute or class to the wrapper using the Designer.
- Use custom JavaScript in the Page Settings or an Embed element to target that element and assign an ID.
3. Manual Override with Custom Embed Code (Not Dynamic)
- If you're not using the CMS and just adding static rich text, you can use a custom Embed element with your own HTML structure.
- This lets you define a parent container with an ID manually, but you lose the benefits of the Rich Text Editor.
Summary
You cannot assign an ID directly to a parent of a Rich Text field using Webflow’s native rich text element or CMS Editor, but you can easily wrap the element in a Div Block and assign the ID to that container.