Hi Jed > On 26 Jun 2018, at 10:41, Jed Carty <[email protected]> wrote: > > I think that using the way that the sjcl encryption library is included is a > good start. The minified sjcl.js file as part of the core plugin along with a > .meta file for it. I think that copying that is the way to go. I am not > exactly sure how the library is loaded, that may be enough.
The integration with the SJCL encryption library is actually not a good example: the SJCL library has to be available during the boot process, which means that it can’t be packaged as a tiddler in the usual way. Better examples are the following places where third party JS libraries are integrated: https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/utils/diff-match-patch https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/highlight https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/railroad https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/xmldom https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/async https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/xlsx-utils https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/sax https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/browser-sniff https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/hammerjs https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/bibtex https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/jszip https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/katex https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/qrcode (To make that list I searched the repo for files called “tiddlywiki.files” and then pruned out some outdated examples). Best wishes Jeremy. -- 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/B1701C0A-B754-486E-82A4-10B1927B8306%40gmail.com. For more options, visit https://groups.google.com/d/optout.
