I have a template tiddler WorkHeader containing an <<edit [FIELDNAME]>>.

I get the text of this template tiddler in an other tiddler by script:

*<script>return store.getTiddlerText("WorkHeader");</script>*


Everything is fine: The macro is rendered, the field is found.

Then I wrote a plugin which basically is doing the same:

*config.macros.showWorkHeader.handler = function 
showTitleOfField(place,macroName,params, wikifier, paramString) {*

   *returnValue = store.getTiddlerText("WorkHeader");*
*   wikify(returnValue, place);* 

* };*


But obviously it _is_ not the same because I get an error as output: error 
in macro, cannot call method 'getAttribute' of undefined.

I checked the returned text using 'alert': looks ok to me.

Any hints?

-- 
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/-/fOOKI4MMTUQJ.
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