You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/05/29 16:54:22 UTC
[sling-org-apache-sling-app-cms] branch master updated: Fixing
issue due to jquery usage
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
The following commit(s) were added to refs/heads/master by this push:
new f46ee90 Fixing issue due to jquery usage
f46ee90 is described below
commit f46ee9022b06ada268127754fd7a5357b07b1ad0
Author: Dan Klco <dk...@apache.org>
AuthorDate: Wed May 29 12:48:13 2019 -0400
Fixing issue due to jquery usage
---
.../components/cms/templateeditor/config/edit.json | 92 +++++++++++-----------
1 file changed, 46 insertions(+), 46 deletions(-)
diff --git a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/config/edit.json b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/config/edit.json
index d9b39c3..37c1e23 100644
--- a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/config/edit.json
+++ b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/templateeditor/config/edit.json
@@ -1,48 +1,48 @@
{
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/slingform",
- "button": "Save Page Type",
- "fields": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/general/container",
- "title": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/fields/text",
- "label": "Title",
- "name": "jcr:title",
- "required": true
- },
- "allowedPaths": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/fields/repeating",
- "type": "text",
- "label": "Allowed Paths",
- "name": "allowedPaths",
- "required": true
- },
- "allowedPathsTypeHint": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/fields/hidden",
- "name": "allowedPaths@TypeHint",
- "value": "String[]"
- },
- "availableComponentTypes": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/cms/availablecomponenttypes"
- },
- "template": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/fields/textarea",
- "defaultValue": "{\r\n \"jcr:primaryType\": \"sling:Page\",\r\n \"jcr:content\": {\r\n \"jcr:primaryType\": \"nt:unstructured\",\r\n \"jcr:title\": \"{{title}}\",\r\n \"sling:template\": \"{{template}}\",\r\n \"sling:resourceType\": \"reference\/components\/pages\/base\",\r\n \"published\": false\r\n }\r\n}",
- "label": "Template",
- "name": "template",
- "required": true
- },
- "format": {
- "jcr:primaryType": "nt:unstructured",
- "sling:resourceType": "sling-cms/components/editor/fields/button",
- "label": "Format",
- "onclick": "javascript:try {$('textarea[name=template]').val(JSON.stringify(JSON.parse($('textarea[name=template]').val()), null, 2));} catch (e) { alert('Unable to parse Template JSON'); };return false;"
- }
- }
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/slingform",
+ "button": "Save Page Type",
+ "fields": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/general/container",
+ "title": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/fields/text",
+ "label": "Title",
+ "name": "jcr:title",
+ "required": true
+ },
+ "allowedPaths": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/fields/repeating",
+ "type": "text",
+ "label": "Allowed Paths",
+ "name": "allowedPaths",
+ "required": true
+ },
+ "allowedPathsTypeHint": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/fields/hidden",
+ "name": "allowedPaths@TypeHint",
+ "value": "String[]"
+ },
+ "availableComponentTypes": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/cms/availablecomponenttypes"
+ },
+ "template": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/fields/textarea",
+ "defaultValue": "{\r\n \"jcr:primaryType\": \"sling:Page\",\r\n \"jcr:content\": {\r\n \"jcr:primaryType\": \"nt:unstructured\",\r\n \"jcr:title\": \"{{title}}\",\r\n \"sling:template\": \"{{template}}\",\r\n \"sling:resourceType\": \"reference\/components\/pages\/base\",\r\n \"published\": false\r\n }\r\n}",
+ "label": "Template",
+ "name": "template",
+ "required": true
+ },
+ "format": {
+ "jcr:primaryType": "nt:unstructured",
+ "sling:resourceType": "sling-cms/components/editor/fields/button",
+ "label": "Format",
+ "onclick": "javascript:try {document.querySelector('textarea[name=template]').value = JSON.stringify(JSON.parse(document.querySelector('textarea[name=template]').value), null, 2);} catch (e) { alert('Unable to parse Template JSON'); };return false;"
+ }
+ }
}
\ No newline at end of file