Why editor removes content on save ?

Why editor removes content on save ?

Ronald76Ronald76 Posts: 4Questions: 2Answers: 0

Hi
if i save data in a textarea field all non standard attributes are removed after saving.

Example:

My text in field:
<span uk-icon="icon: triangle-right"></span>

After saving data:
<span></span>

Knows somebody why ?

Thanks

This question has an accepted answers - jump to answer

Answers

  • Ronald76Ronald76 Posts: 4Questions: 2Answers: 0
    edited January 2018

    -

  • allanallan Posts: 61,715Questions: 1Answers: 10,108 Site admin
    Answer ✓

    Hi,

    I'm assuming that you are using the PHP libraries for Editor based on your description above. Its because caused by the XSS protection which strips out unknown attributes from the HTML. You could disable it as described in the documentation to confirm is that is the case.

    Allan

  • Ronald76Ronald76 Posts: 4Questions: 2Answers: 0

    Thanks Allan

This discussion has been closed.