Prevent rendering CDATA in TinyMCE editor

Topics: Troubleshooting
May 17, 2014 at 10:03 PM
I'm addressing a knockout template in the default TinyMCE HTML editor.

In the tinyMCE.init({
extended_valid_elements: "script[type|defer|src|language|id]"
});

the id is already added, this allows the id to be written inside the script tag.

<script type="text/html" id="custom_grid_template">

But after leaving the html editor, there are // <![CDATA[ opening and closing attributes written inside the template, and knockout won't allow that.

How can I configure TinyMCE NOT to write CDATA tags?