diff --git a/apps/admin-x-settings/src/admin-x-ds/global/form/HtmlEditor.tsx b/apps/admin-x-settings/src/admin-x-ds/global/form/HtmlEditor.tsx index 356721d050..052160341e 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/form/HtmlEditor.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/form/HtmlEditor.tsx @@ -120,6 +120,13 @@ const KoenigWrapper: React.FC = ({ MINIMAL_NODES: koenig.MINIMAL_TRANSFORMERS }; + const handleSetHtml = (html: string) => { + // Koenig sends this event on load without changing the value, so this prevents forms from being marked as unsaved + if (html !== value) { + onChange?.(html); + } + }; + return ( = ({ singleParagraph={true} onBlur={onBlur} > - + );