Hi,
I'm writing a plugin that will let me enter <video> elements easily into my tiddlers. I want to use Video.js for this; this means that I need to include an extra stylesheet and a javascript file.
I have the basics working in that I have a plugin that registers a macro and includes the stylesheet. My question is on how to get the javascript included. What I've done is the following:
- Set the type of the tiddler to "application/javascript"
- Set the field "module-type" to "library"
- Set the field "global-module" to "true"
Despite all this, the tiddle is included in my pages but in <div> and <pre> tags; I also cannot see it in the Firefox debugger as a .js that was loaded, whereas the other .js file in my plugin (the one that registers the macro) is visible there. So I'd expect this video.js to also show up there?
What am I doing wrong? What is the proper way to reference complete external javascript libraries from an internal tiddle (i.e., I don't want to load it from the CDN)? Thanks.
regards,
Roel