-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from Adobe-Consulting-Services/feature/generi…
…c-text-image adding generic text & image component (using dynamic RTE)
- Loading branch information
Showing
7 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...main/content/jcr_root/apps/acs-commons/components/content/generic-text-image/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Generic Text & Image" | ||
sling:resourceSuperType="foundation/components/textimage" | ||
allowedParents="[*/parsys]" | ||
componentGroup="General"/> |
22 changes: 22 additions & 0 deletions
22
...ontent/jcr_root/apps/acs-commons/components/content/generic-text-image/_cq_editConfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" | ||
jcr:primaryType="cq:EditConfig"> | ||
<cq:dropTargets jcr:primaryType="nt:unstructured"> | ||
<image | ||
jcr:primaryType="cq:DropTargetConfig" | ||
accept="[image/.*]" | ||
groups="[media]" | ||
propertyName="./image/fileReference"> | ||
<parameters | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="acs-commons/components/content/generic-text-image"> | ||
<image | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="foundation/components/image" | ||
imageCrop="" | ||
imageMap="" | ||
imageRotate=""/> | ||
</parameters> | ||
</image> | ||
</cq:dropTargets> | ||
</jcr:root> |
4 changes: 4 additions & 0 deletions
4
...nt/jcr_root/apps/acs-commons/components/content/generic-text-image/clientlib/.content.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:ClientLibraryFolder" | ||
categories="[acs-commons.components]"/> |
1 change: 1 addition & 0 deletions
1
...content/jcr_root/apps/acs-commons/components/content/generic-text-image/clientlib/css.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
textimage.css |
28 changes: 28 additions & 0 deletions
28
...t/jcr_root/apps/acs-commons/components/content/generic-text-image/clientlib/textimage.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* #%L | ||
* ACS AEM Commons Package | ||
* %% | ||
* Copyright (C) 2014 Adobe | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
div.generic-text-image div.image { | ||
float: left; | ||
margin: 0 0.5em 0.5em 0; | ||
} | ||
|
||
div.generic-text-image.image_right div.image { | ||
float: right; | ||
margin: 0 0 0.5em 0.5em; | ||
} |
37 changes: 37 additions & 0 deletions
37
...c/main/content/jcr_root/apps/acs-commons/components/content/generic-text-image/dialog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:TabPanel" | ||
activeTab="{Long}0" | ||
xtype="tabpanel"> | ||
<items jcr:primaryType="cq:WidgetCollection"> | ||
<tab1 | ||
jcr:primaryType="cq:Widget" | ||
anchor="100%" | ||
title="Text" | ||
xtype="panel"> | ||
<items jcr:primaryType="cq:WidgetCollection"> | ||
<text | ||
jcr:primaryType="cq:Widget" | ||
script="rte.textimage.json?addElementQuery=div[class="text"].jsp" | ||
xtype="slingscriptinclude"/> | ||
<richFlag | ||
jcr:primaryType="cq:Widget" | ||
ignoreData="{Boolean}true" | ||
name="./textIsRich" | ||
value="true" | ||
xtype="hidden"/> | ||
</items> | ||
</tab1> | ||
<tab2 | ||
jcr:primaryType="cq:Widget" | ||
path="/libs/foundation/components/textimage/dialog/items/tab2.infinity.json" | ||
xtype="cqinclude"/> | ||
<tab3 | ||
jcr:primaryType="cq:Widget" | ||
path="/libs/foundation/components/textimage/dialog/items/tab3.infinity.json" | ||
xtype="cqinclude"/> | ||
<tab4 | ||
jcr:primaryType="cq:Widget" | ||
xtype="componentstyles"/> | ||
</items> | ||
</jcr:root> |
Binary file added
BIN
+494 Bytes
...ontent/jcr_root/apps/acs-commons/components/content/generic-text-image/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.