Text Block - Content Editor - Question | JoomShaper

Text Block - Content Editor

A

ayao

SP Page Builder 1 year ago

Can someone explain why the default Content Editor in SP Page Builder keeps on erasing class and id of an element that's added via source code?

For example, when I want to modify an individual element within the text using <span id="abc">Test</span>, it would work fine, but as soon as I edit the text, the system would automatically erase the <span> tag.

And if I add a class or id into <p> tag such as <p id="abc">, it would just reset to <p>.

Why is that? This doesn't seem to make whole lot of sense when we want to just modify few lines here and there?

0
1 Answers
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 1 year ago #172925

Hi Ayao,

Thank you for reaching out.

The SP Page Builder's default Content Editor removes custom classes and IDs to ensure content integrity and prevent security issues, such as XSS attacks. When you edit text, it automatically formats the HTML, stripping these attributes.

If you need to include HTML with classes and IDs, please use the 'Raw HTML' Addon. You can find the documentation here: https://www.joomshaper.com/documentation/sp-page-builder/raw-html

If you have any further questions, feel free to ask.

Best regards.

0