Project

General

Profile

Adding a script to wiki page for ruby-newbie

Added by Nikita Pustovoytov almost 14 years ago

I'd like to modify <head> of wiki page to add a link to jsMath script to support Tex. Could you help, which file should I modify?

I looked through /app/views/wiki/ and added code to show.rhtml. So when viewing a wiki page it works nice. Which file should I patch to add jsMath support to preview mode?

And which files should I patch to add jsMath support in Issue description in view and preview modes?

Any help is appreciated.


Replies (1)

RE: Adding a script to wiki page for ruby-newbie - Added by Peter Lawrence over 13 years ago

Nijita I think this is more a javascript problem. When you click on preview the page is updated and you need to then call jsmath to reprocess the page, I think this is done by calling the function jsMath.ProcessBeforeShowing() after the preview data has been loaded. If you just include the jsmath script in the header it renders the page on load, but will not update on sequential changes.
See http://www.math.union.edu/~dpvc/jsMath/authors/dynamic.html

    (1-1/1)