Twexe and TW5-jsoneditor issues?

132 views
Skip to first unread message

Tiddly Novice

unread,
Oct 28, 2020, 4:15:32 PM10/28/20
to TiddlyWiki

I'm trying to get a new TW working with TWexe and the TW5-jsoneditor plug-in working on a windows 10 computer with firefox, but after I drag and drop all the plug-in tiddlers from the plug-in into the fresh wiki (as instructed), save, and refresh I get nothing but a page with an error message that reads:
> "Internal Javascript Error
> Well, this is embarrassing. It is recommended that you restart TiddlyWiki by refreshing your browser
> TypeError: $tw.KeyboardManager is not a constructor"

Refreshing doesn't change anything. I've basically forgotten all the TW knowledge I ever had after years of not using it, so I have no idea what I'm doing wrong. Anybody have an idea?

Joshua Fontany

unread,
Oct 28, 2020, 8:50:02 PM10/28/20
to TiddlyWiki
Hi!

Author of TW5-jsoneditor here. :) Json Editor was a proof-of-concept that unfortunately stopped getting updated around  TiddlyWiki 5.1.20 .

One of the dependents ( $:/plugins/joshuafontany/jsonmangler ), "patches the Tiddlywiki core" by inserting code on-the-fly when it is booted.

I have a feeling your TWexe instance is at a newer version, and this patching process has gone wrong. What version of TW are you running?

I would get Json Manger from here: https://github.com/joshuafontany/TW5-jsonmangler
Demo wiki (currently on TW 5.1.23-pre): https://chronicles.wiki/TW5-JsonMangler/ 

And then you can use TW "wikitext" to build any UI templates you need, and target nested JSON data with any "index" needed in widgets, etc.

Best,
Joshua F

TW Tones

unread,
Oct 28, 2020, 8:54:12 PM10/28/20
to TiddlyWiki
Also in addition to Joshua's notes I have a separate wiki for JSON mangling, generating new tiddlers from my import data and transfer the data to my wiki, 

ie: So you twexe need not support JSON mangler but will make use of its results. 

If using twexe you may also consider making use of TiddlyDesktop instead.

Regards
Tones 

Tiddly Novice

unread,
Oct 29, 2020, 2:56:19 PM10/29/20
to TiddlyWiki
The TW version is 5.1.9 in the control panel. I don't know if that's newer or older. I'm open to changing versions and using different things, as I'm not currently locked into any particular version yet. I'm just trying to get a good start right now. I shall look into TiddlyDesktop.

TW Tones

unread,
Oct 29, 2020, 6:06:41 PM10/29/20
to TiddlyWiki
The Current version at tiddlywiki.com is 5.1.22 (find to use now) and the pre-release version is 5.1.23 which may be released soon, do not use until released to tiddlywiki.com, perhaps even wait for a little while for a 5.1.24 if there are bugs. 

Tones

Tiddly Novice

unread,
Oct 30, 2020, 7:06:19 PM10/30/20
to TiddlyWiki
TiddlyDesktop seems to be working, though I had a brief moment of panic when it didn't seem able to save. Turned out that it can't save if I use the wiki html files generated by twexe. I guess because they're for older versions? I haven't tested if the Json editor works on the newer version of TW I'm using, but since it isn't getting updated I guess there wouldn't be much point. But I'm not sure I've found examples for how to use the json mangler like I was hoping to use the json editor. Should I start a new conversation to ask for guidance on that?

TW Tones

unread,
Oct 30, 2020, 8:18:02 PM10/30/20
to TiddlyWiki
TiddlyNovice

FYI: You can load TWexe with any wiki including the latest version. 

Personally I favour Timimi on Chrome and Firefox for local files that do not need local filesystem access.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages