Content block run scripting before saving block edits

Permalink 0 0 Browser Info Environment
It appears that the HTML Content block runs any embedded javascript before saving the content of the block, thus modifying the saved html output..

For instance, I have some scripting that adds an href to an anchor depending on a setting. If I make that comparison TRUE, then on viewing the saved block again I see that the source has been changed with an added href to the anchor tag. Same thing happens if scripting modifies other attributes of a tag.

This makes the Content block mostly useless when used with scripting. My fallback is to use the Advance HTML block, though the editor cursor bug is quite annoying.


Status: New

concrete5 Environment Information

v8.3.2

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36