##// END OF EJS Templates
Removed HTMLCell from UI and added better placeholder logic.
Brian E. Granger -
Show More
@@ -164,9 +164,9 b' var IPython = (function (IPython) {'
164 this.content.find('#to_code').click(function () {
164 this.content.find('#to_code').click(function () {
165 IPython.notebook.to_code();
165 IPython.notebook.to_code();
166 });
166 });
167 this.content.find('#to_html').click(function () {
167 // this.content.find('#to_html').click(function () {
168 IPython.notebook.to_html();
168 // IPython.notebook.to_html();
169 });
169 // });
170 this.content.find('#to_markdown').click(function () {
170 this.content.find('#to_markdown').click(function () {
171 IPython.notebook.to_markdown();
171 IPython.notebook.to_markdown();
172 });
172 });
@@ -72,6 +72,9 b' var IPython = (function (IPython) {'
72 this.code_mirror.focus();
72 this.code_mirror.focus();
73 this.code_mirror.refresh();
73 this.code_mirror.refresh();
74 this.rendered = false;
74 this.rendered = false;
75 if (this.get_source() === this.placeholder) {
76 this.set_source('');
77 };
75 };
78 };
76 };
79 };
77
80
@@ -86,7 +86,7 b''
86 <div class="section_row">
86 <div class="section_row">
87 <span id="cell_type" class="section_row_buttons">
87 <span id="cell_type" class="section_row_buttons">
88 <button id="to_code">Code</button>
88 <button id="to_code">Code</button>
89 <button id="to_html">HTML</button>
89 <!-- <button id="to_html">HTML</button>-->
90 <button id="to_markdown">Markdown</button>
90 <button id="to_markdown">Markdown</button>
91 </span>
91 </span>
92 <span class="button_label">Format</span>
92 <span class="button_label">Format</span>
General Comments 0
You need to be logged in to leave comments. Login now