Skip to content

Commit

Permalink
Add default value to Rich Text field (#9526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnholtz authored Nov 15, 2024
1 parent 55db8d3 commit 82e1110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ export const FIELD_TYPES_WITHOUT_DEFAULT = [
propertyType: "string",
propertyFormat: "data-url",
}),
stringifyUiType({
propertyType: "string",
uiWidget: "richText",
propertyFormat: "html",
}),
stringifyUiType({
propertyType: "string",
uiWidget: "imageCrop",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const RichTextWidget: React.FunctionComponent<WidgetProps> = ({
disabled,
readonly,
options,
value
}) => {
const { database } = options;

Expand All @@ -45,6 +46,7 @@ const RichTextWidget: React.FunctionComponent<WidgetProps> = ({
}}
editable={!(disabled || readonly)}
assetDatabaseId={validateUUID(database)}
content={typeof value === "string" ? value : ""}
/>
);
};
Expand Down

0 comments on commit 82e1110

Please sign in to comment.