From c5631ae376524554cd98fb4e991c9d0c82a2c0d2 Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Mon, 6 Dec 2010 14:37:11 -0800 Subject: [PATCH] Get MathJax workin' --- .../public/javascript/gollum-editor/gollum.editor.js | 5 +---- lib/gollum/frontend/public/javascript/gollum.js | 8 ++++++++ scratch/TODO | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) mode change 100644 => 100755 lib/gollum/frontend/public/javascript/gollum.js diff --git a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js index 9b359de2..88897fdd 100755 --- a/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js +++ b/lib/gollum/frontend/public/javascript/gollum-editor/gollum.editor.js @@ -353,8 +353,7 @@ * @return boolean */ mathJax: function() { - //TODO - return false; + return (typeof window.MathJax == 'object'); }, @@ -769,8 +768,6 @@ } var helpData = Help._HELP[name]; - // add MathJax Help if we have it - // TODO if ( EditorHas.mathJax() && Help.isLoadedFor('mathjax') ) { debug('Adding MathJax support to help'); // TODO diff --git a/lib/gollum/frontend/public/javascript/gollum.js b/lib/gollum/frontend/public/javascript/gollum.js old mode 100644 new mode 100755 index e88fb0b0..679c4fb9 --- a/lib/gollum/frontend/public/javascript/gollum.js +++ b/lib/gollum/frontend/public/javascript/gollum.js @@ -71,6 +71,10 @@ $(document).ready(function() { }); } + if ( window.MathJax ) { + + } + }); var nodeSelector = { @@ -179,3 +183,7 @@ function highlightOff() { function highlightChecked() { nodeSelector.checkNode($(this)); } + +function initMathJax() { + +} diff --git a/scratch/TODO b/scratch/TODO index 8333fd0a..bbba778a 100755 --- a/scratch/TODO +++ b/scratch/TODO @@ -1,5 +1,6 @@ * Editor * Get MathJax running + * Fix up regexes * Figure out why Dialogs won't fire in IE7 (likely a css issue)