Loading...
Started by Will Brueske • Jun 4, 2025 1:43 PM
Total Replies
1
Participants
2
Activity
Quiet
Duration
1:43 PM
Thread starter
<RichText /> component not updating with what's set in the in-app previewer? It only uses what's set as the default. Works fine when deployed, just not with the local previewer. Here's a basic module example:import '../../styles/global.css';
import { RichText } from '@hubspot/cms-components';
export const meta = {
label: 'Test 3',
};
export const fields = [
{
label: 'Test',
name: 'test',
type: 'richtext',
default: '<h2>This is the default rich text for this field</h2>',
},
];
export const Component = ({
fieldValues,
}: {
fieldValues: any;
}) => {
const { test } = fieldValues;
return (
<div className='max-w-4-col'>
<RichText fieldPath='test' className='richtext' />
<div>{test}</div>
</div>
);
};
1 messages in thread