I'm using the tinyMCE add-on, and I want to add <style> tag in my article content. But tinyMCE always strips my tag! I searched and found the possible solutions:
(1) change the config option valid_childern:
tinymce.init({
...
valid_children : "+body[style],-body[div],p[strong|a|#text]"
});
(2) change the config option valid_elements:
tinyMCE.init({
...
valid_elements : "...,style[type]"
});
Unfortunately, the SYSTEM SETTINGS didn't have config entry for two options above. Then I found people said that there is an extended_valid_elements config in xconfig.js. So I edited this file and added the style tag. But it didn't work.
Now I want to edit the tinyMCE.init function directly, I went through most files but I still couldn't find it. Could you please tell me where I can find the tinyMCE.init function? Thank you very much.