Greetings community,
I have a problem with my RTE. I have the misc tool source edit plugin set up. But lists are not rendered correctly in the Rich text edit mode.
see the two enclosed pictures:
Here on this last picture, I can't see the bullet points of my list. This happens also on numbered lists, and I also have an issue related to intented blocks in a list, they are rendered as multiple columns weirdly.
The configuration of my rte seems correct.
Finally, when I click on Done in the dialog, I have an error in my console:
HTML tags must be properly nested and closed: <div class="richtexteditor">
<div class="richtext " data-ext-icon="<svg viewBox="0 0 79 79" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon--decorative" role="presentation">
<title>An icon of a outbound link arrow</title>
<path class="icon-stroke" d="M75.3037 3.98207L3 75.5935M75.3037 3.98207L76.0435 43.3021M75.3037 3.98207L35.951 3.59351" stroke="#F22F46" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
">
<ul><li>First item</li><li>Second item</li></ul>
</div>
<cq data-path="/content/twilio-com/global/language-masters/en/test/test/stef-test-rte/jcr:content/root/global-main/layout_container/column-0/richtexteditor" data-config="{"path":"/content/twilio-com/global/language-masters/en/test/test/stef-test-rte/jcr:content/root/global-main/layout_container/column-0/richtexteditor","slingPath":"/content/twilio-com/global/language-masters/en/test/test/stef-test-rte/jcr:content/root/global-main/layout_container/column-0/richtexteditor.html","dialog":"/apps/twilio-foundation/components/content/richtexteditor/cq:dialog","dialogLoadingMode":"auto","dialogLayout":"auto","dialogSrc":"/mnt/override/apps/twilio-foundation/components/content/richtexteditor/_cq_dialog.html/content/twilio-com/global/language-masters/en/test/test/stef-test-rte/jcr:content/root/global-main/layout_container/column-0/richtexteditor","designDialog":"/apps/twilio-foundation/components/content/richtexteditor/cq:design_dialog","designDialogLayout":"fullscreen","designDialogLoadingMode":"auto","designDialogSrc":"/mnt/override/apps/twilio-foundation/components/content/richtexteditor/_cq_design_dialog.policydesign.editabletemplate.html/conf/twilio-com/settings/wcm/policies/twilio-com/components/content/richtexteditor/policy_1658225818497?dialog=%2Fapps%2Ftwilio-foundation%2Fcomponents%2Fcontent%2Frichtexteditor%2Fcq%3Adesign_dialog&referrer=%2Fcontent%2Ftwilio-com%2Fglobal%2Flanguage-masters%2Fen%2Ftest%2Ftest%2Fstef-test-rte&policyContentPath=%2Fcontent%2Ftwilio-com%2Fglobal%2Flanguage-masters%2Fen%2Ftest%2Ftest%2Fstef-test-rte%2Fjcr%3Acontent%2Froot%2Fglobal-main%2Flayout_container%2Fcolumn-0%2Frichtexteditor&policyContentResourceType=twilio-com%2Fcomponents%2Fcontent%2Frichtexteditor&policyDirectoryPath=%2Fconf%2Ftwilio-com%2Fsettings%2Fwcm%2Fpolicies%2Ftwilio-com%2Fcomponents%2Fcontent%2Frichtexteditor%2F&policyMappingPath=%2Fconf%2Ftwilio-com%2Fsettings%2Fwcm%2Ftemplates%2Fbase-page%2Fpolicies%2Fjcr%3Acontent%2Froot%2Fglobal-main%2Ftwilio-com%2Fcomponents%2Fcontent%2Frichtexteditor&policyMappingResourceType=wcm%2Fcore%2Fcomponents%2Fpolicies%2Fmapping&policyName=policy_1658225818497&policyRelativePath=twilio-com%2Fcomponents%2Fcontent%2Frichtexteditor%2Fpolicy_1658225818497&resourceType=wcm%2Fcore%2Fcomponents%2Fpolicy%2Fpolicy","designDialogClassic":"/apps/twilio-foundation/components/content/richtexteditor/cq:design_dialog","hasPolicyMapping":true,"type":"twilio-com/components/content/richtexteditor","isResponsiveGrid":false,"policyPath":"root/global-main/twilio-com/components/content/richtexteditor","csp":"base-page|page|basicpage/root|column-container/column-container/layout-container/layout-column/richtexteditor","editConfig":{"inplaceEditingConfig":{"active":true,"editorType":"text","configPath":"/apps/twilio-foundation/components/content/richtexteditor/cq:editConfig/cq:inplaceEditing/inplaceEditingConfig"}},"ipeConfig":{"jcr:primaryType":"nt:unstructured","rtePlugins":{"jcr:primaryType":"nt:unstructured","color-picker":{"jcr:primaryType":"nt:unstructured","features":"*"},"edit":{"jcr:primaryType":"nt:unstructured","features":"paste-plaintext"},"experience-aem-fonts":{"jcr:primaryType":"nt:unstructured","features":"*"},"findreplace":{"jcr:primaryType":"nt:unstructured","features":"*"},"format":{"features":"bold,italic,underline","jcr:primaryType":"nt:unstructured"},"image":{"jcr:primaryType":"nt:unstructured","features":"*"},"justify":{"features":"*","jcr:primaryType":"nt:unstructured"},"links":{"features":"modifylink,unlink,anchor","jcr:primaryType":"nt:unstructured"},"lists":{"jcr:primaryType":"nt:unstructured","features":"*"},"misctools":{"features":"sourceedit,specialchars","jcr:primaryType":"nt:unstructured","specialCharsConfig":{"jcr:primaryType":"nt:unstructured","chars":{"jcr:primaryType":"nt:unstructured","item0":{"jcr:primaryType":"nt:unstructured","entity":"&copy;","name":"copyright"},"item1":{"jcr:primaryType":"nt:unstructured","entity":"&reg;","name":"registered"},"item2":{"jcr:primaryType":"nt:unstructured","entity":"&trade;","name":"trademark"},"section":{"jcr:primaryType":"nt:unstructured","entity":"&#167;"},"dagger":{"jcr:primaryType":"nt:unstructured","entity":"&#134;"},"double_dagger":{"jcr:primaryType":"nt:unstructured","entity":"&#135;"}}}},"paraformat":{"features":"*","jcr:primaryType":"nt:unstructured","formats":{"jcr:primaryType":"nt:unstructured","item0":{"jcr:primaryType":"nt:unstructured","description":"Paragraph","tag":"p"},"item1":{"jcr:primaryType":"nt:unstructured","description":"Heading 2","tag":"h2"},"item2":{"jcr:primaryType":"nt:unstructured","description":"Heading 3","tag":"h3"},"item3":{"jcr:primaryType":"nt:unstructured","description":"Heading 4","tag":"h4"},"item4":{"jcr:primaryType":"nt:unstructured","description":"Heading 5","tag":"h5"},"item5":{"jcr:primaryType":"nt:unstructured","description":"Heading 6","tag":"h6"}}},"spellcheck":{"jcr:primaryType":"nt:unstructured","features":"*"},"styles":{"jcr:primaryType":"nt:unstructured","features":"*","styles":{"jcr:primaryType":"nt:unstructured","copy1":{"jcr:primaryType":"nt:unstructured","text":"Paragraph SM","cssName":"copy-small"},"copy2":{"jcr:primaryType":"nt:unstructured","text":"Paragraph MD","cssName":"copy-medium"},"copy3":{"jcr:primaryType":"nt:unstructured","text":"Paragraph LG","cssName":"copy-large"},"copy4":{"jcr:primaryType":"nt:unstructured","text":"Paragraph XL","cssName":"copy-extra-large"},"other1":{"jcr:primaryType":"nt:unstructured","text":"Supertext","cssName":"title-super-text"},"other2":{"jcr:primaryType":"nt:unstructured","text":"Code Snippet","cssName":"code-markup"}}},"subsuperscript":{"jcr:primaryType":"nt:unstructured","features":"*"},"table":{"features":"-","jcr:primaryType":"nt:unstructured","hiddenHeaderConfig":{"jcr:primaryType":"nt:unstructured","hiddenHeaderClassName":"cq-wcm-foundation-aria-visuallyhidden"}},"tracklinks":{"features":"*","jcr:primaryType":"nt:unstructured"},"undo":{"jcr:primaryType":"nt:unstructured","features":"*"},"video-selector":{"jcr:primaryType":"nt:unstructured","features":"*"}},"uiSettings":{"jcr:primaryType":"nt:unstructured","cui":{"jcr:primaryType":"nt:unstructured","inline":{"jcr:primaryType":"nt:unstructured","toolbar":["#format","#justify","#lists","links#modifylink","links#unlink","#paraformat","fullscreen#start","control#close","control#save"],"popovers":{"jcr:primaryType":"nt:unstructured","format":{"jcr:primaryType":"nt:unstructured","ref":"format","items":["format#bold","format#italic","format#underline"]},"justify":{"jcr:primaryType":"nt:unstructured","ref":"justify","items":["justify#justifyleft","justify#justifycenter","justify#justifyright","justify#justifyjustify"]},"lists":{"jcr:primaryType":"nt:unstructured","ref":"lists","items":["lists#unordered","lists#ordered","lists#outdent","lists#indent"]},"paraformat":{"jcr:primaryType":"nt:unstructured","ref":"paraformat","items":"paraformat:getFormats:paraformat-pulldown"}}}}}}}"></cq>
</div>
<anonymous code>:1:145535
overrideMethod <anonymous code>:1
jQuery 5
updateDom http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.lc-a644ad0e34c6aa69abf3f76af13fcc32-lc.min.js:944
updateDom http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.lc-a644ad0e34c6aa69abf3f76af13fcc32-lc.min.js:944
_postExecuteHTML http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.lc-a644ad0e34c6aa69abf3f76af13fcc32-lc.min.js:715
postExecuteRequestFunction http://localhost:4502/libs/cq/gui/components/authoring/editors/clientlibs/core.lc-a644ad0e34c6aa69abf3f76af13fcc32-lc.min.js:319
jQuery 5
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Do you guys have any idea of what could possibly be wrong here ?
Thanks a lot !
Views
Replies
Total Likes
Hi @StephanePo1 ,
It might be due to double quotes within the SVG attributes which interfere with the outer HTML attributes.
So in the overlayed Text component instead of keeping svg at data-ext-icon attribute, you can try extra div with display none.
An get svg using innerHtml (js) or using html() method of jquery in js like below
<div class="richtext" >
<div id="data-ext-icon" style="display:none">
//here put svg hardcoded or received with model
</div>
</div>
<!--IN Jquery-->
let svgData = $('#data-ext-icon').html()
<!--IN JS-->
let svgData = document.getElementById('data-ext-icon').innerHTML;
Or
Just put svg path instead of whole svg code in data-ext-icon
Thanks
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies