you are looking for exports.htmlUnsafeElements = "script".split(",");
but I think it would be better to include a couple of macros to switch scripting on and off: create a tiddler (any name will do) and set the type to "application/json" add field "module-type" with value "macro" and insert in it (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro */ exports.name = "enablescript"; exports.params = [ ]; /* Run the macro */ exports.run = function() { $tw.config.htmlUnsafeElements = ""; return ""; }; })(); then another tiddler with the type to "application/json" add field "module-type" with value "macro" (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ /* Information about this macro returns value of key in a data json tiddler note that macros are not connected with the refresh mechanism -use with caution. */ exports.name = "disablescript"; exports.params = [ ]; /* Run the macro */ exports.run = function() { $tw.config.htmlUnsafeElements = "script".split(","); return ""; } })(); then use in a tiddler like this <<enablescript>> <script type="text/javascript"> alert("Hooray"); </script> <<disablescript>> <script type="text/javascript"> alert("Hooray2"); </script> cheers BJ On Thursday, January 29, 2015 at 11:18:18 AM UTC-6, Jimmy Armand wrote: > > Sorry but I'm not sure to understand what you mean. Is it that there's a > parameter named script that will help me do what I want? Because in the > config.js, there's no "script" configuration to be found. > > On Wednesday, 28 January 2015 19:12:02 UTC-5, Tobias Beer wrote: >> >> It's not hard to find. If you search the source tree for "script" >>> (including quotes) you'll see this in *config.js*... >>> >> >> Thanks for the pointers. >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.