Mark,

Thanks a lot for the post. Saved me big time!

However, I found it not changing the text alignment.

For example, I had an element, place, which contains left-aligned text 
"left text" before I did

wikify ( " centered text ", place );   // The " content text " does contain 
a leading and an ending white space.

Afterwards the content of place got changed to "centered text", but remains 
left-aligned.

The text decorations, such as "__underlined__" and "//italic//", and CSS 
style settings, such as @@color:blue;blue text@@, all seem to work fine.

Am I missing something for text alignment here?

Vincent

On Wednesday, November 25, 2009 12:59:52 AM UTC+8, Mark S. wrote:
>
> You can try 
>
>   wikify(' '+pre+''+dir+''+array_name[ry]+''+post+' ',place) ; 
>
> Mark 
>
> On Nov 24, 7:45 am, Mike <[email protected]> wrote: 
> > Here is my script: 
> > 
> > <script src="images/array_it.js" show> 
> > function random_imglink(){ 
> >         var ry=Math.floor(Math.random()*array_name.length) 
> >         if (ry==0) 
> >         ry=1 
> >         var pre='[>img(400px+,auto)[Random Picture|' 
> >         var dir='images/' 
> >         var post=']]' 
> >         document.write(' '+pre+''+dir+''+array_name[ry]+''+post+' ') 
> >         } 
> > random_imglink() 
> > </script> 
> > 
> > Which provides the text output (slightly different each time due to 
> > the random array) 
> > [>img(400px+,auto)[Random Picture|images/famslide-2.jpg]] 
> > 
> > What do I need to do to "Wikify" this output so I see the picture 
> > instead of the text? 
> > 
> > Thanks, 
> > 
> > Mike 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/0na-Frqjle4J.
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