Novice Question: How do I edit an existing widget from a plugin?

66 views
Skip to first unread message

AdamS

unread,
Nov 2, 2018, 7:54:25 PM11/2/18
to TiddlyWikiDev
I'm trying to edit the OokTech word counter so that it only counts displayed text. I am very much a novice at this. I'm finding that the changes I make to the word-count.js tiddler aren't actually affecting the html. I have no idea what the proper workflow is here. As you can probably guess, I am not a developer. But I thought I might learn a thing or two and try to offer something. If someone could point me in the right direction here, I'd be very much obliged.

Best regards,

Adams

Matthew Lauber

unread,
Nov 3, 2018, 10:33:30 PM11/3/18
to TiddlyWikiDev
The first thing I can mention is that editing a javascript tiddler doesn't affect the running javascript until you save the tiddler _and_ reload the page.  The other thing I'd do is mention the web developer tools.  IF when viewing the wiki, you hit F12, it should open the web developer tools.  Under the sources tab, under "No Domain" in the left hand side, you should see all the javascript files from your wiki loaded.  You can view individual files, and if you click on a line number, you can pause execution next time that line is executed and you can look at the contents of the variables.  

Hope that helps.

Matt

AdamS

unread,
Nov 5, 2018, 7:01:05 AM11/5/18
to TiddlyWikiDev
That's extremely helpful! Thanks, Matt.
Reply all
Reply to author
Forward
0 new messages