TinyMCE stripping out my javascript

2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 21, 2010   (RSS)

Re: [benedict] TinyMCE stripping out my javascript

By jarvis - May 21, 2010

Not tried it but you could edit this file:
cmsAdmin/lib/wysiwyg.php


Add this line:
extended_valid_elements :"script[language|type]",
Into the block that looks like:
tinyMCE.init({
mode : "exact",
theme : "advanced",
language: "{$SETTINGS['wysiwyg']['wysiwygLang']}",
spellchecker_languages:

Around line 50 and add it in so it then looks like
tinyMCE.init({
mode : "exact",
theme : "advanced",
language: "{$SETTINGS['wysiwyg']['wysiwygLang']}",
extended_valid_elements :"script[language|type]",
spellchecker_languages:


That may help.

Cheers