mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Ace editor now works with Markdown and HTML cells with proper modes.
This commit is contained in:
parent
68fe221a29
commit
a997e50782
@ -96,6 +96,8 @@ var IPython = (function (IPython) {
|
|||||||
var output = text_cell.find("div.text_cell_render");
|
var output = text_cell.find("div.text_cell_render");
|
||||||
output.hide();
|
output.hide();
|
||||||
text_cell.find('div.text_cell_input').show();
|
text_cell.find('div.text_cell_input').show();
|
||||||
|
// I don't know why I need to do this, but if I don't do
|
||||||
|
// refresh/focus/refresh, the to_markdown method won't work.
|
||||||
this.code_mirror.refresh();
|
this.code_mirror.refresh();
|
||||||
this.code_mirror.focus();
|
this.code_mirror.focus();
|
||||||
this.code_mirror.refresh();
|
this.code_mirror.refresh();
|
||||||
|
@ -176,6 +176,8 @@
|
|||||||
|
|
||||||
<script src="/static/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
<script src="/static/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="/static/ace/mode-python.js" type="text/javascript" charset="utf-8"></script>
|
<script src="/static/ace/mode-python.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="/static/ace/mode-markdown.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
<script src="/static/ace/mode-html.js" type="text/javascript" charset="utf-8"></script>
|
||||||
<script src="/static/ace/theme-textmate.js" type="text/javascript" charset="utf-8"></script>
|
<script src="/static/ace/theme-textmate.js" type="text/javascript" charset="utf-8"></script>
|
||||||
|
|
||||||
<script src="/static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
|
<script src="/static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user