I'm trying to tweak the Annotations plugin (Lewcid) so that it will
wikify the source text that's being annotated. Annotation markup has
the form ((source(annotation)); the annotations are put into popups by
the plugin's formatter. The crucial line of the formatter uses
createTiddlyElement (_2[1] is the source text; _3 becomes the popup
location):

                var _3=createTiddlyElement(w.output,"span",null,"annosub", 
_2[1]);

I put a kudgy solution at 
http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#Annotations2.
It only works if there is only one annotation per tiddler! Not sure
why that is....

                var _3=createTiddlyElement(w.output,"span",null,"annosub");
                jQuery(wikifyStatic(_2[1])).appendTo(_3);

Is there an equivalent to createTiddlyElement that does indeed wikify?
InsideTiddlyWiki suggests that createTiddlyElement is
deprecated...What replaces it?

Thanks for any pointers,

Bill

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to