Solo, I'm not sure of the specifics of what you are trying to achieve but one way to achieve this might be to subclass the WikiModule, and implement your own logic on top of it.
The tags plugin [1] does this very thing. Alec [1] http://muness.textdriven.com/trac/wiki/tags On Sat, Apr 15, 2006 at 12:36:43AM +0200, solo turn wrote: > hi, > > would you suggest to change/extend the trac html markup somehow to > better integrate wikiwyg, or is this not necessary? some examples: > > 1. a normal wiki page > http://projects.edgewall.com/trac. > > 2. a new ticket > http://projects.edgewall.com/trac > > 3. an existing ticket > http://projects.edgewall.com/trac/ticket/1682. > special case: if you have the right, you are allowed to edit the > description too. > > 4. milestone > http://projects.edgewall.com/trac/roadmap > http://projects.edgewall.com/trac/milestone/0.10 > special case: if you have the right, you are allowed to edit the description. > > 6. makros/extensions/plugins > http://trac-hacks.org/wiki/EggCookingTutorial/BasicEggCooking > wiki source contains something like "[[TOC(heading=Egg Cooking > Tutorial, EggCookingTutorial/BasicEggCooking, > EggCookingTutorial/AdvancedEggCooking, > EggCookingTutorial/AdvancedEggCooking2)]]", which then is completely > different. or also at the end, "[[TagIt(rede)]]" > > how/where would you try to integrate it? mgood made a comment: > > >You don't need to add an id to the tag in order to get the DOM node. > cssQuery is a >convenient way to look up nodes using CSS-style > selectors. You should be able to > > get the wiki editing fields like: > > > >var wiki_editors = cssQuery("textarea.wikitext"); > > which is true after you pressed "edit", or you have the text field to > enter your text. > > > -solo. > _______________________________________________ > Trac-dev mailing list > [email protected] > http://lists.edgewall.com/mailman/listinfo/trac-dev > -- Evolution: Taking care of those too stupid to take care of themselves. _______________________________________________ Trac-dev mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac-dev
