Categories > TinyButStrong general >

TBS converts [ to [

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Peter
Date: 2010-08-23
Time: 14:30

TBS converts [ to [

Hello,
i habe an problem with some Javscript code inside the Template:
<script language="javascript" type="text/javascript">
    tinyMCE.init({
        mode : "textareas",
    ...
         extended_valid_elements : "script[charset|defer|language|src|type]"
   
    });
</script>
The script[charset gets converted to script&#91;charset. How ca i disable this?
Thanks Peter
By: TomH
Date: 2010-08-23
Time: 18:37

Re: TBS converts [ to &#91;

The "Manual" page link on the top menu bar

search for "htmlconv=val"

then see if  "=js" will work for you

By: Peter
Date: 2010-08-24
Time: 10:09

Re: TBS converts [ to &#91;

It's in the Template and not in an MergedBlock so i can't disable it this way.
Any other suggestion's?

Peter
By: TomH
Date: 2010-08-24
Time: 12:45

Re: TBS converts [ to &#91;

Sorry, I mis-read your post, duh!

An option (instead of changing the default TBS delimiters to "{}" which is ugly) might be to put the js into a file and reference the file
The template then reads like...
<script language='javascript' type='text/javascript'
     src='myTinyMCEfile.js'></script>
Maybe?