Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Text component cannot be updated using the dialog after inline edit #18 #19

Merged
merged 3 commits into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const TextEditConfig = {
class Text extends Component {

get richTextContent() {
return <div id={extractModelId(this.props.cqPath)} dangerouslySetInnerHTML={{__html: this.props.text}}/>;
return <div id={extractModelId(this.props.cqPath)} data-rte-editelement dangerouslySetInnerHTML={{__html: this.props.text}}/>;
}

get textContent() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:EditConfig">
<cq:inplaceEditing
jcr:primaryType="cq:InplaceEditingConfig"
active="{Boolean}true"
editorType="text">
<config
jcr:primaryType="nt:unstructured"
editElementQuery="\[data-rte-editelement]"/>
</cq:inplaceEditing>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:EditConfig">
<cq:inplaceEditing
jcr:primaryType="cq:InplaceEditingConfig"
active="{Boolean}true"
editorType="text">
<config
jcr:primaryType="nt:unstructured"
editElementQuery="\[data-rte-editelement]"/>
</cq:inplaceEditing>
</jcr:root>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const TextEditConfig = {
class Text extends Component {

get richTextContent() {
return <div id={extractModelId(this.props.cqPath)} dangerouslySetInnerHTML={{__html: this.props.text}}/>;
return <div id={extractModelId(this.props.cqPath)} data-rte-editelement dangerouslySetInnerHTML={{__html: this.props.text}}/>;
}

get textContent() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:EditConfig">
<cq:inplaceEditing
jcr:primaryType="cq:InplaceEditingConfig"
active="{Boolean}true"
editorType="text">
<config
jcr:primaryType="nt:unstructured"
editElementQuery="\[data-rte-editelement]"/>
</cq:inplaceEditing>
</jcr:root>