Thank you Eric - and Mark..

Now I have a new tool for converting lists to links...
I have put it my ViewToolbarCommands ..
It looks like this:
<script label="{{{[[]]}}}">
   var tid=store.getTiddler(tiddler.title);
   var txt='[['+tid.text.split('\n').join(']]\n[[')+']]';
   store.saveTiddler
(tid.title,tid.title,txt,tid.modifier,tid.modified,tid.tags,tid.fields);
</script>

It would be VERY nice if I could use it on selected text in editmode
instead...
I have WikiBar already - but it only supports setting brackets around
one selection - or one word at a time.
If I could select a column of words and they could have brackets pr
line in editmode-  it  would be great!!

YS Måns Mårtensson

On 13 Apr., 22:07, Eric Shulman <[email protected]> wrote:
> > TypeError: title.lastIndexOf is not a function
> > However I cannot find out what the problem is by myself...
>
> oops!  replace 'tid' with 'tid.title' in the first two arguments to
> saveTiddler():
>
> store.saveTiddler
> (tid.title,tid.title,txt,tid.modifier,tid.modified,tid.tags,tid.fields);
>
> -e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to