Removed HTMLCell from UI and added better placeholder logic.

This commit is contained in:
Brian E. Granger 2011-08-17 15:29:22 -07:00
parent 0f3bc468e3
commit cff986a539
2 changed files with 4 additions and 1 deletions

View File

@ -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('');
};
};
};

View File

@ -86,7 +86,7 @@
<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>