Permalink
Browse files

Removed HTMLCell from UI and added better placeholder logic.

  • Loading branch information...
ellisonbg committed Aug 17, 2011
1 parent 486e84f commit eb895bf2efe953059546389f3a5e4216ee5a84b6
@@ -164,9 +164,9 @@ var IPython = (function (IPython) {
this.content.find('#to_code').click(function () {
IPython.notebook.to_code();
});
- this.content.find('#to_html').click(function () {
- IPython.notebook.to_html();
- });
+// this.content.find('#to_html').click(function () {
+// IPython.notebook.to_html();
+// });
this.content.find('#to_markdown').click(function () {
IPython.notebook.to_markdown();
});
@@ -72,6 +72,9 @@ var IPython = (function (IPython) {
this.code_mirror.focus();
this.code_mirror.refresh();
this.rendered = false;
+ if (this.get_source() === this.placeholder) {
+ this.set_source('');
+ };
};
};
@@ -86,7 +86,7 @@ <h3 class="section_header">Cell</h3>
<div class="section_row">
<span id="cell_type" class="section_row_buttons">
<button id="to_code">Code</button>
- <button id="to_html">HTML</button>
+<!-- <button id="to_html">HTML</button>-->
<button id="to_markdown">Markdown</button>
</span>
<span class="button_label">Format</span>

0 comments on commit eb895bf

Please sign in to comment.