I'm encountering difficulties with TinyMCE and custom tags in our custom CMS setup. Here are my current settings:
tinyMCE.init({
// General options
mode: "textareas",
width: "200",
theme: "advanced",
cleanup_on_startup: false,
trim_span_elements: false,
verify_html: false,
cleanup: false,
convert_urls: false,
...
On one of the pages, I need to include this tag using the source editor:
<gcse:searchresults-only queryParameterName="search"></gcse:searchresults-only>
However, the editor keeps stripping it out. I attempted adding these rules:
extended_valid_elements: "gcse:searchresults-only[*]",
custom_elements: "gcse:searchresults-only"
This allowed me to add the tag but only if it's not nested within another tag. If I enclose the tag in a div element, TinyMCE strips out the gcse tag, leaving the div empty.
My question is: How can I prevent TinyMCE from stripping out ANY of the tags?
Thank you.