fix: cleaned the extra space in description before saving to avoid word break (#27632)

This commit is contained in:
an_ifrah24
2026-02-05 12:20:07 +01:00
committed by GitHub
parent de24e0a232
commit 75cd509106
@@ -143,9 +143,12 @@ export const EventSetupTab = (
</Label>
<Editor
getText={() => md.render(formMethods.getValues("description") || "")}
setText={(value: string) =>
formMethods.setValue("description", turndown(value), { shouldDirty: true })
}
setText={(value: string) => {
// Clean up non-breaking spaces
const cleanedValue = value.replace(/&nbsp;/g, ' ');
const markdownValue = turndown(cleanedValue);
formMethods.setValue("description", markdownValue, { shouldDirty: true });
}}
excludedToolbarItems={["blockType"]}
placeholder={t("quick_video_meeting")}
editable={!descriptionLockedProps.disabled}