This is an automated email from the ASF dual-hosted git repository. dklco pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
commit 02fd03a139932d6ca0251a8d917c7bc5b1b95a30 Author: Dan Klco <[email protected]> AuthorDate: Mon Aug 27 13:30:47 2018 -0400 Adding an editor for textareas --- .../components/editor/fields/textarea/edit.json | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/textarea/edit.json b/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/textarea/edit.json new file mode 100644 index 0000000..86f6437 --- /dev/null +++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/editor/fields/textarea/edit.json @@ -0,0 +1,47 @@ + { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/editor/slingform", + "button": "Save Field", + "fields": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/general/container", + "label": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/editor/fields/text", + "label": "Label", + "name": "label", + "required": true + }, + "name": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/editor/fields/text", + "label": "Name", + "name": "name", + "required": true + }, + "required": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/editor/fields/select", + "label": "Required", + "name": "required", + "options": { + "yes": { + "jcr:primaryType": "nt:unstructured", + "label": "Yes", + "value": "true" + }, + "no": { + "jcr:primaryType": "nt:unstructured", + "label": "No", + "value": "false" + } + } + }, + "requiredTypeHint": { + "jcr:primaryType": "nt:unstructured", + "sling:resourceType": "sling-cms/components/editor/fields/hidden", + "name": "required@TypeHint", + "value":"Boolean" + } + } +} \ No newline at end of file
