Show More
@@ -136,7 +136,7 b' var IPython = (function (IPython) {' | |||
|
136 | 136 | that.control_key_active = false; |
|
137 | 137 | return false; |
|
138 | 138 | } else if (event.which === 84 && that.control_key_active) { |
|
139 |
// To Plaintext = |
|
|
139 | // To Plaintext = t | |
|
140 | 140 | that.to_plaintext(); |
|
141 | 141 | that.control_key_active = false; |
|
142 | 142 | return false; |
@@ -401,7 +401,11 b' var IPython = (function (IPython) {' | |||
|
401 | 401 | }; |
|
402 | 402 | var cell = this.get_cell(index) |
|
403 | 403 | cell.select(); |
|
404 | IPython.toolbar.set_cell_type(cell.cell_type); | |
|
404 | if (cell.cell_type === 'heading') { | |
|
405 | IPython.toolbar.set_cell_type(cell.cell_type+cell.level); | |
|
406 | } else { | |
|
407 | IPython.toolbar.set_cell_type(cell.cell_type) | |
|
408 | } | |
|
405 | 409 | }; |
|
406 | 410 | return this; |
|
407 | 411 | }; |
@@ -672,6 +676,7 b' var IPython = (function (IPython) {' | |||
|
672 | 676 | source_element.remove(); |
|
673 | 677 | this.dirty = true; |
|
674 | 678 | }; |
|
679 | IPython.toolbar.set_cell_type("heading"+level); | |
|
675 | 680 | }; |
|
676 | 681 | }; |
|
677 | 682 |
@@ -108,6 +108,20 b' var IPython = (function (IPython) {' | |||
|
108 | 108 | IPython.notebook.to_code(); |
|
109 | 109 | } else if (cell_type === 'markdown') { |
|
110 | 110 | IPython.notebook.to_markdown(); |
|
111 | } else if (cell_type === 'plaintext') { | |
|
112 | IPython.notebook.to_plaintext(); | |
|
113 | } else if (cell_type === 'heading1') { | |
|
114 | IPython.notebook.to_heading(undefined, 1); | |
|
115 | } else if (cell_type === 'heading2') { | |
|
116 | IPython.notebook.to_heading(undefined, 2); | |
|
117 | } else if (cell_type === 'heading3') { | |
|
118 | IPython.notebook.to_heading(undefined, 3); | |
|
119 | } else if (cell_type === 'heading4') { | |
|
120 | IPython.notebook.to_heading(undefined, 4); | |
|
121 | } else if (cell_type === 'heading5') { | |
|
122 | IPython.notebook.to_heading(undefined, 5); | |
|
123 | } else if (cell_type === 'heading6') { | |
|
124 | IPython.notebook.to_heading(undefined, 6); | |
|
111 | 125 | }; |
|
112 | 126 | }); |
|
113 | 127 |
@@ -180,6 +180,13 b'' | |||
|
180 | 180 | <select id="cell_type"> |
|
181 | 181 | <option value="code">Code</option> |
|
182 | 182 | <option value="markdown">Markdown</option> |
|
183 | <option value="plaintext">Plaintext</option> | |
|
184 | <option value="heading1">Heading 1</option> | |
|
185 | <option value="heading2">Heading 2</option> | |
|
186 | <option value="heading3">Heading 3</option> | |
|
187 | <option value="heading4">Heading 4</option> | |
|
188 | <option value="heading5">Heading 5</option> | |
|
189 | <option value="heading6">Heading 6</option> | |
|
183 | 190 | </select> |
|
184 | 191 | </span> |
|
185 | 192 |
General Comments 0
You need to be logged in to leave comments.
Login now