Can't figure out how to put a rich text field into my html hulb code

Highlighted
New Member

I want to be able to have a rich text module when I edit the page. however when I post the {% rich_text html="{{module.html}}" %} code within the module source code. a rich text field doesnt appear for me to type my text in. 

here is where i want to be able to adda rich text fieldhere is where i want to be able to adda rich text fieldthis is the HUBL code. i tried to insert a rich text code but it wont showthis is the HUBL code. i tried to insert a rich text code but it wont show

Reply
0 Upvotes
2 Replies 2
Highlighted
Regular Advisor

If this is within a custom module, then you can't add a module ( the {% rich_text html="{{module.html}}" %} ) to it, only fields. 

 

If you have a Rich Text field on the sidebar of your module with the internal name "html", then you can either add in the snippet for that module (Actions > Copy Snippet): 

 

<div class="elem-btn">{% inline_rich_text field="content" value="{{ module.html }}" %}</div>

or it's value (Actions > Copy value only):

 

<div class="elem-btn">{{ module.html }}</div>

Rich text field in custom module - copy snippet optionRich text field in custom module - copy snippet option


Stephanie O'Gay Garcia

HubSpot CMS Design & Development

Website | Contact

 

If this helped, please mark it as the solution to your question, thanks!

Reply
0 Upvotes
Highlighted
Top Contributor

 {% rich_text html="{{module.html}}" %}

remove the {{

 {% rich_text html="module.html" %}

 

since you are inside of a hb instruction already

If this post helped you resolve your issue, please consider marking it as the solution. Thank you for supporting our HubSpot community.
Reply
0 Upvotes