I also get the same single letter output behavior if I just try to use tags
from a given tiddler as well:
eg something like:
var sourcetiddler=store.getTiddler("tagsDB");
var tags=sourcetiddler.tags.sort();
On Monday, May 27, 2013 7:39:32 PM UTC-7, Arc Acorn wrote:
>
> The subject line is weird since I'm not sure how to phrase it.
>
> I want to change the "DeliciousTagging" plugin which I'll past in at the
> end of the post.
> So that instead of using all the tags in the TiddlyWiki it only uses a
> list of tags in a tiddler.
> However using this method:
> var tags= store.getTiddlerText("tagsDB");
>
> Gives me a list of each letter in the tiddler as it's own tag...
> eg:
> If the tiddler contains:
> TagTest1 TagTest2
>
> I get:
> [[t]] [[a]] [[g]] [[t]] [[e]] [[s]] [[t]] [[1]] [[t]] [[a]] [[g]] [[t]]
> [[e]] [[s]] [[t]] [[2]]
>
> As the output.
>
>
> ===The Plugin===
> /***
> |''Name:''|DeliciousTaggingPlugin|
> |''Version:''|0.1|
> |''Source''|
> http://jackparke.googlepages.com/jtw.html#DeliciousTaggingPlugin ([[
> del.icio.us|
> http://del.icio.us/post?url=http://jackparke.googlepages.com/jtw.html%DeliciousTaggingPlugin]])|<http://del.icio.us/post?url=http://jackparke.googlepages.com/jtw.html%DeliciousTaggingPlugin]])%7C>
> |''Author:''|[[Jack]]|
> !Description
> Allows easy 'del.icio.us'-like tagging in the EditTemplate by showing all
> tags as a list of link-buttons.
> !Usage
> Replace your the editorFooter div in your [[EditTemplate]] with the
> following:
> {{{
> <div class='editorFooter' macro='deliciousTagging'></div>
> }}}
> !Code
> ***/
> //{{{
> version.extensions.deliciousTagging = {major: 0, minor: 1, revision: 0,
> date: new Date("June 11, 2007")};
>
> config.macros.deliciousTagging= {};
>
> config.macros.deliciousTagging.onTagClick = function(e)
> {
> if(!e) var e = window.event;
> var tag = this.getAttribute("tag");
> var title = this.getAttribute("tiddler");
> if(!readOnly)
> story.setTiddlerTag(title,tag,0);
> return false;
> };
>
> config.macros.deliciousTagging.handler =
> function(place,macroName,params,wikifier,paramString,tiddler)
> {
> if(tiddler instanceof Tiddler) {
> var title = tiddler.title;
> if(!e) var e = window.event;
> var tags = store.getTags();
> var lingo = config.views.editor.tagChooser;
> for(var t=0; t<tags.length; t++) {
> var theTag =
> createTiddlyButton(place,tags[t][0],lingo.tagTooltip.format([tags[t][0]]),config.macros.deliciousTagging.onTagClick);
> theTag.setAttribute("tag",tags[t][0]);
> theTag.setAttribute("tiddler",tiddler.title);
> place.appendChild(document.createTextNode(" "));
> }
> }
> };
> //}}}
>
--
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 http://groups.google.com/group/tiddlywikidev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.