Adding Richtext type in schema

This commit is contained in:
2023-02-09 15:42:49 +01:00
parent 308aec4706
commit 6a5c1852e4
4 changed files with 34 additions and 10 deletions

View File

@@ -47,6 +47,9 @@ export class CrudFormlyJsonschemaOptions implements FormlyJsonschemaOptions {
field.type = "hidden";
} else if (schema.type == "array" && schema.format == "dictionary") {
field.type = "dictionary";
} else if (schema.type == "string" && schema.hasOwnProperty('props')
&& schema.props.hasOwnProperty("richtext") && schema.props.richtext) {
field.type = "richtext";
}
if (schema.hasOwnProperty('props')) {