So im trying to allow script and style tags in Redactor. Apparently CS uses the older version 1, and according to docs and source there is an allowedTags parameter that should do the trick.
So, CS has its own editor loading mechanism(s) found in /js/tygh/editors/editorname.editor.js. Its able to piggyback in parameters from this script, which seems pretty straightforward.
Lets add the allowedTags like so:
this.params.allowedTags = ['script', 'style'];
Seems like that should be cool right? However it's not working. Any ideas whats up with this? It said its a depreciated function, but CS is running the old version, so it should be good to go.
Notes about that here:
I see there is a rando site that claims:
Either use the Allowed Tags setting, or the Denied Tags setting - not both! When using the Allowed Tags setting, you can whitelist accepted tags in the content - others will be stripped.
Does this mean in a parameter sense? DeniedTags is defined in source, but allowedTags are not. In a sane world, you could init allowedTags param (and not deniedTags) to bypass this logic...but it seems buggy. Or the cm-wysiwyg init is throwing it off.