On Thursday, March 3, 2016 at 2:39:52 PM UTC-8, Pete Wason wrote:
>
> All I want to do is load chance.js when the whole thing loads so that I 
> can use some of its functions in html tiddlers.
> I tried editing the whole file and putting in <script src="chance.js" /> 
> in the head section near 
>
> <link id="faviconLink" rel="shortcut icon" href="favicon.ico">
> which worked - until I had edited something and saved, and that line went 
> away.
> What's the right way to do this?
>
>
Put your <script...> call into a tiddler (any name), and tag that tiddler 
with $:/tags/RawMarkup

When the document is saved, it will automatically insert the content from 
tiddlers with that tag directly into the <head> of the document file, so 
that the script will be invoked the next time you reload.  

As a side note, you should *never* have to hand-edit the TiddlyWiki source 
file to add functionality.  Most of the time, there are already hooks and 
other mechanisms for adding customizations to the core code.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/10c7828b-cdc6-4f0b-bfa5-8200566e1683%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to