我试图使用该库“ react-jsonschema-form-extra”在react-jsonformschema中添加诸如“ ui:field”之类的额外字段。通过CDN包含.js文件。如何访问jsonformschema中的richtexteditor字段。
<script src="https://cdn.jsdelivr.net/npm/react-jsonschema-form@1.0.3/dist/react-jsonschema-form.js"></script>
<script src="https://cdn.jsdelivr.net/npm/react-jsonschema-form-extras@0.9.34/lib/index.min.js"> </script>
<script type="text/babel"
const fields = JSONSchemaFormExtra.default;
const uiSchema =
"TextBox": {
"ui:field": "rte",
"rte": {
"format": "html"
}
}
return(
<Form
schema={schema}
uiSchema={uiSchema}
field={fields}
onSubmit={onSubmit}
</Form>)
</script>