> How to use file star1.png attached by AttachFilePlugin in html?thank you.

AttachFilePlugin extends the TW [img[...]] syntax to permit use of an
'attachment tiddler' title instead of an external file reference.

However, your plugin isn't generating TW syntax... it is outputting
directly as HTML... thus, you can't use the [img[...]] syntax to
display the attached image file.  Instead, you need to use a JS
function, defined in AttachFilePluginFormatters:

var URL=config.macros.attach.getAttachment("TiddlerName")

Then, you can construct the appropriate HTML, like this:
  star='<img src="'+URL+'" onmouseover="highlight(this.id)" ...

enjoy,
-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