fix: cleaned the extra space in description before saving to avoid word break (#27632)
This commit is contained in:
@@ -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(/ /g, ' ');
|
||||
const markdownValue = turndown(cleanedValue);
|
||||
formMethods.setValue("description", markdownValue, { shouldDirty: true });
|
||||
}}
|
||||
excludedToolbarItems={["blockType"]}
|
||||
placeholder={t("quick_video_meeting")}
|
||||
editable={!descriptionLockedProps.disabled}
|
||||
|
||||
Reference in New Issue
Block a user