- added translation=no wrapper for all Editor components;
This commit is contained in:
@@ -145,7 +145,7 @@ const FormFieldRepeaterFaq = ({
|
||||
const header = renderHeader();
|
||||
|
||||
const faqOptionTemplate = (option) => {
|
||||
return DOMPurify.sanitize(option.title, {ALLOWED_TAGS: ['#text']});
|
||||
return DOMPurify.sanitize(option.title, { ALLOWED_TAGS: ['#text'] });
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
@@ -236,33 +236,39 @@ const FormFieldRepeaterFaq = ({
|
||||
onHide={hideEditDialog}>
|
||||
<div className="appForm__field">
|
||||
<label for="faqTitle">{__('Titolo FAQ', 'gepafin')}</label>
|
||||
<Editor
|
||||
id="faqTitle"
|
||||
value={title}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'title')}
|
||||
style={{ height: 80 * 1 }}
|
||||
/>
|
||||
<div translate="no">
|
||||
<Editor
|
||||
id="faqTitle"
|
||||
value={title}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'title')}
|
||||
style={{ height: 80 * 1 }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="appForm__field">
|
||||
<label for="faqValue">{__('Domanda', 'gepafin')}</label>
|
||||
<Editor
|
||||
id="faqValue"
|
||||
value={question}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'value')}
|
||||
style={{ height: 80 * 1 }}
|
||||
/>
|
||||
<div translate="no">
|
||||
<Editor
|
||||
id="faqValue"
|
||||
value={question}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'value')}
|
||||
style={{ height: 80 * 1 }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="appForm__field">
|
||||
<label for="faqResponse">{__('Risposta', 'gepafin')}</label>
|
||||
<Editor
|
||||
id="faqResponse"
|
||||
value={answer}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'response')}
|
||||
style={{ height: 80 * 2 }}
|
||||
/>
|
||||
<div translate="no">
|
||||
<Editor
|
||||
id="faqResponse"
|
||||
value={answer}
|
||||
headerTemplate={header}
|
||||
onTextChange={(e) => onChangeEditItem(e.htmlValue, 'response')}
|
||||
style={{ height: 80 * 2 }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="appForm__field">
|
||||
<label>{__('Pubblicato?', 'gepafin')}</label>
|
||||
|
||||
Reference in New Issue
Block a user