diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index a003023d0..ad61acde6 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -31,6 +31,11 @@ span#notebook_name { font-size: 146.5%; } +#menubar { + /* Initially hidden to prevent FLOUC */ + display: none; +} + .ui-menubar-item .ui-button .ui-button-text { padding: 0.4em 1.0em; font-size: 100%; @@ -50,6 +55,22 @@ span#notebook_name { margin: 0.3em 0; } +#fulledit_widget { + /* Initially hidden to prevent FLOUC */ + display: none; + width: 920px; + margin: 0px auto; +} + +#fulledit_editor { + height: 577px; + width: 920px; +} + +#fulledit_header { + width: 920px; +} + span#quick_help_area { position: static; padding: 5px 0px; diff --git a/IPython/frontend/html/notebook/static/js/menubar.js b/IPython/frontend/html/notebook/static/js/menubar.js index cbd8fa194..36013ecf5 100644 --- a/IPython/frontend/html/notebook/static/js/menubar.js +++ b/IPython/frontend/html/notebook/static/js/menubar.js @@ -106,6 +106,9 @@ var IPython = (function (IPython) { IPython.notebook.insert_code_cell_below(); }); // Cell + this.element.find('#full_edit_cell').click(function () { + IPython.fulledit_widget.open(); + }); this.element.find('#run_cell').click(function () { IPython.notebook.execute_selected_cell(); }); diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 020e6b039..15b5fd61c 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -178,6 +178,11 @@ var IPython = (function (IPython) { IPython.quick_help.show_keyboard_shortcuts(); that.control_key_active = false; return false; + } else if (event.which === 69 && that.control_key_active) { + // Edit in Ace = e + IPython.fulledit_widget.toggle(); + that.control_key_active = false; + return false; } else if (that.control_key_active) { that.control_key_active = false; return true; diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js index 7dd638c02..1df7dad89 100644 --- a/IPython/frontend/html/notebook/static/js/notebookmain.js +++ b/IPython/frontend/html/notebook/static/js/notebookmain.js @@ -71,7 +71,8 @@ $(document).ready(function () { }else{ // No MathJax, but none expected. No dialog. } - + + IPython.markdown_converter = new Markdown.Converter(); IPython.read_only = $('meta[name=read_only]').attr("content") == 'True'; @@ -88,6 +89,7 @@ $(document).ready(function () { IPython.kernel_status_widget = new IPython.KernelStatusWidget('#kernel_status'); IPython.menubar = new IPython.MenuBar('#menubar') IPython.kernel_status_widget.status_idle(); + IPython.fulledit_widget = new IPython.FullEditWidget('#fulledit_widget'); IPython.layout_manager.do_resize(); @@ -104,6 +106,7 @@ $(document).ready(function () { $('#notebook_name').attr('disabled','disabled') } + $('div#menubar').css('display','block'); $('div#main_app').css('display','block'); // Perform these actions after the notebook has been loaded. diff --git a/IPython/frontend/html/notebook/static/js/quickhelp.js b/IPython/frontend/html/notebook/static/js/quickhelp.js index 8e2954158..41aa3ef98 100644 --- a/IPython/frontend/html/notebook/static/js/quickhelp.js +++ b/IPython/frontend/html/notebook/static/js/quickhelp.js @@ -32,6 +32,7 @@ var IPython = (function (IPython) { {key: 'Ctrl-m c', help: 'copy cell'}, {key: 'Ctrl-m v', help: 'paste cell'}, {key: 'Ctrl-m d', help: 'delete cell'}, + {key: 'Ctrl-m e', help: 'toggle edit cell in Ace'}, {key: 'Ctrl-m a', help: 'insert cell above'}, {key: 'Ctrl-m b', help: 'insert cell below'}, {key: 'Ctrl-m t', help: 'toggle output'}, diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index 51e2eb76e..69ca96c3e 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -110,6 +110,8 @@
  • Cell