adobe-rnd / aem-boilerplate-xwalk

Use this repository template for new AEM XWalk projects.
https://main--aem-boilerplate-xwalk--adobe-rnd.aem.page
Apache License 2.0
23 stars 29 forks source link

Wrappers added for RTE not treated as default content, hence wrappers split #32

Closed buuhuu closed 3 months ago

buuhuu commented 3 months ago

The editor-support-rte.js script may run before decorateSections() depending on the project. In this case it will already have the consecutive paragraphs of richtext editables wrapped in <div> before the wrappers are added to the sections in decorateSections().

decorateSections() currently treats these <div> as blocks and adds new wrappers for them without a classname.