Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
f9420cb350
commit
585d713884
@@ -909,6 +909,7 @@ export function CustomFormBuilder() {
|
||||
body_html: editor.getHTML(),
|
||||
font_family: fontFamily,
|
||||
font_size_pt: fontSize,
|
||||
line_height: lineHeight,
|
||||
signature_blocks: [],
|
||||
fields: formFields as any,
|
||||
};
|
||||
@@ -946,6 +947,7 @@ export function CustomFormBuilder() {
|
||||
setHideTitle(t.hide_title);
|
||||
setFontFamily(t.font_family);
|
||||
setFontSize(t.font_size_pt);
|
||||
if (typeof t.line_height === "number" && t.line_height > 0) setLineHeight(t.line_height);
|
||||
editor.commands.setContent(t.body_html || "<p></p>");
|
||||
const loadedFields = Array.isArray(t.fields) ? t.fields : [];
|
||||
setFormFields(loadedFields);
|
||||
|
||||
Reference in New Issue
Block a user