> ...you would rather create the element and then wikify the template > into it... > > wikify( > template, > createTiddlyElement(place,div,divId,class) > );
Something else I didn't know you could do. :P Actually, I'd seen that syntax in a couple of plugins but couldn't figure it out until I read your comment here. What I wound up doing was similar: //{{{ config.macros.characterCounter = {} config.macros.characterCounter.handler = function(place,macroName,params,wikifier,paramString,tiddler) { var rowsHeight = params.length > 0 ? params[0] : "6"; var colsWidth = params.length > 1 ? params[1] : "50"; wikify("<<tiddler CharacterCounterPluginTemplate with: " + "\"" + rowsHeight + "\"" + " " + "\"" + colsWidth + "\"" +">>",place); } //}}} ... but instead of making the template a variable, I made it a shadow tiddler stored within the plugin. (That let me transclude it with the <<tiddler>> macro into a tiddler where my <<characterCounter>> macro is run. > As for the one on pastebin... did you get it to work for you? It does > what you want your <<characterCounter>> to do... only just it's > called chrCount and requires you to somewhat specify the element for > which you want to count the text-length. Worked like a charm. I was just stubbornly trying to get all the code into a single plugin to make it user-friendly for the technophobic. ;) Did you bang out that on on Pastebin just for me ... ? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.