-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating to use wysihtml instead of summernote
- Loading branch information
Showing
17 changed files
with
543 additions
and
62 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
45 changes: 45 additions & 0 deletions
45
...urces/jcr_root/libs/sling-cms/components/editor/fields/richtext/toolbar/button/button.jsp
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,45 @@ | ||
<%-- /* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
*/ --%> | ||
<%@include file="/libs/sling-cms/global.jsp"%> | ||
<c:choose> | ||
<c:when test="${not empty properties.value}"> | ||
<a class="button is-small" data-wysihtml-command="${properties.command}" data-wysihtml-command-value="${properties.value}"> | ||
<c:choose> | ||
<c:when test="${not empty properties.icon}"> | ||
<em class="jam jam-${properties.icon} icon"></em> | ||
</c:when> | ||
<c:otherwise> | ||
<strong class="icon">${properties.text}</strong> | ||
</c:otherwise> | ||
</c:choose> | ||
</a> | ||
</c:when> | ||
<c:otherwise> | ||
<a class="button is-small" data-wysihtml-command="${properties.command}"> | ||
<c:choose> | ||
<c:when test="${not empty properties.icon}"> | ||
<em class="jam jam-${properties.icon} icon"></em> | ||
</c:when> | ||
<c:otherwise> | ||
<strong class="icon">${properties.text}</strong> | ||
</c:otherwise> | ||
</c:choose> | ||
</a> | ||
</c:otherwise> | ||
</c:choose> |
28 changes: 28 additions & 0 deletions
28
...jcr_root/libs/sling-cms/components/editor/fields/richtext/toolbar/buttonbar/buttonbar.jsp
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 @@ | ||
<%-- /* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
*/ --%> | ||
<%@include file="/libs/sling-cms/global.jsp"%> | ||
<div class="level is-mobile"> | ||
<div class="level-left"> | ||
<c:forEach var="child" items="${sling:listChildren(resource)}"> | ||
<div class="level-item"> | ||
<sling:include resource="${child}" /> | ||
</div> | ||
</c:forEach> | ||
</div> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...root/libs/sling-cms/components/editor/fields/richtext/toolbar/buttongroup/buttongroup.jsp
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,24 @@ | ||
<%-- /* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
*/ --%> | ||
<%@include file="/libs/sling-cms/global.jsp"%> | ||
<div class="buttons has-addons"> | ||
<c:forEach var="child" items="${sling:listChildren(resource)}"> | ||
<sling:include resource="${child}" /> | ||
</c:forEach> | ||
</div> |
48 changes: 48 additions & 0 deletions
48
...r_root/libs/sling-cms/components/editor/fields/richtext/toolbar/createlink/createlink.jsp
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,48 @@ | ||
<%-- /* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
*/ --%> | ||
<%@include file="/libs/sling-cms/global.jsp"%> | ||
<div data-wysihtml-dialog="createLink" style="display: none;"> | ||
<div class="has-padding-1 has-background-white-ter rte-form"> | ||
<p>Link</p> | ||
<div class="field has-addons"> | ||
<div class="control is-expanded"> | ||
<input class="input pathfield is-small" data-wysihtml-dialog-field="href" data-type="nt:hierarchyNode" data-base="/content" autocomplete="off" /> | ||
</div> | ||
<div class="control"> | ||
<a href="/cms/shared/search.html" class="button is-small Fetch-Modal search-button" data-title="Search" data-path=".Main-Content > *"> | ||
<span class="jam jam-search"></span> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<select class="select is-small" data-wysihtml-dialog-field="target"> | ||
<option value="">Same Window</option> | ||
<option value="_blank">New Window</option> | ||
</select> | ||
</div> | ||
<div class="buttons"> | ||
<a data-wysihtml-dialog-action="save" class="button is-small is-success"> | ||
<em class="jam jam-check icon"></em> | ||
</a> | ||
<a data-wysihtml-dialog-action="cancel" class="button is-small"> | ||
<em class="jam jam-close icon"></em> | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.