Can I modify a TW Classic plugin to work for TW5?

94 views
Skip to first unread message

j3d1H

unread,
Apr 27, 2017, 4:44:12 PM4/27/17
to TiddlyWiki
I have this word counter plugin here:

merge(config.macros,{
    wordCount: {
        handler: function(place,macroName,params,wikifier,paramString,tiddler) {
            createTiddlyText(place,tiddler&&tiddler.text?tiddler.text.match(/\w+/g).length:"0");
        }
    }
});

And I would like to make it compatible with TiddlyWiki 5. I'm fine if it needs a few extra steps, as long as it works.

Birthe C

unread,
Apr 27, 2017, 7:46:01 PM4/27/17
to TiddlyWiki
Hi j3d1H,

Maybe you could use Thomas Elmigers EditorCounter


Birthe

j3d1H

unread,
Apr 28, 2017, 9:24:20 AM4/28/17
to TiddlyWiki
Well, now I want to be able to see how many words are in the entire TW. Sorry! :D
Reply all
Reply to author
Forward
0 new messages