- added translation=no wrapper for all Editor components;

This commit is contained in:
Vitalii Kiiko
2025-03-27 11:33:52 +01:00
parent 645f03abb0
commit b8c0a869ee
9 changed files with 62 additions and 52 deletions

View File

@@ -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>