Show More
@@ -39,11 +39,10 b' var IPython = (function (IPython) {' | |||||
39 | extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess"}, |
|
39 | extraKeys: {"Tab": "indentMore","Shift-Tab" : "indentLess"}, | |
40 | onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this) |
|
40 | onKeyEvent: $.proxy(this.handle_codemirror_keyevent,this) | |
41 | }); |
|
41 | }); | |
42 | this.cell_id = IPython.utils.uuid(); |
|
|||
43 | // The tabindex=-1 makes this div focusable. |
|
42 | // The tabindex=-1 makes this div focusable. | |
44 | // id is a unique cell_id necessary for updating MathJax intelligently |
|
43 | // id is a unique cell_id necessary for updating MathJax intelligently | |
45 | var render_area = $('<div/>').addClass('text_cell_render border-box-sizing'). |
|
44 | var render_area = $('<div/>').addClass('text_cell_render border-box-sizing'). | |
46 |
addClass('rendered_html').attr('tabindex','-1') |
|
45 | addClass('rendered_html').attr('tabindex','-1'); | |
47 | cell.append(input_area).append(render_area); |
|
46 | cell.append(input_area).append(render_area); | |
48 | this.element = cell; |
|
47 | this.element = cell; | |
49 | }; |
|
48 | }; | |
@@ -81,7 +80,7 b' var IPython = (function (IPython) {' | |||||
81 |
|
80 | |||
82 | TextCell.prototype.typeset = function () { |
|
81 | TextCell.prototype.typeset = function () { | |
83 | if (window.MathJax){ |
|
82 | if (window.MathJax){ | |
84 |
var cell_math = |
|
83 | var cell_math = this.element.get(0); | |
85 | MathJax.Hub.Queue(["Typeset",MathJax.Hub,cell_math]); |
|
84 | MathJax.Hub.Queue(["Typeset",MathJax.Hub,cell_math]); | |
86 | } |
|
85 | } | |
87 | }; |
|
86 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now