From 5d0e44a8e5bc2456182579b13e330b54b3cc5038 2013-01-14 07:40:58 From: Matthias BUSSONNIER Date: 2013-01-14 07:40:58 Subject: [PATCH] add default celltoolbar UI --- diff --git a/IPython/frontend/html/notebook/static/js/celltoolbarpresets/default.js b/IPython/frontend/html/notebook/static/js/celltoolbarpresets/default.js new file mode 100644 index 0000000..da1e558 --- /dev/null +++ b/IPython/frontend/html/notebook/static/js/celltoolbarpresets/default.js @@ -0,0 +1,94 @@ +//---------------------------------------------------------------------------- +// Copyright (C) 2012 The IPython Development Team +// +// Distributed under the terms of the BSD License. The full license is in +// the file COPYING, distributed as part of this software. +//---------------------------------------------------------------------------- + +//============================================================================ +// CellToolbar Default +//============================================================================ + +/** + * Example Use for the CellToolbar library + */ + // IIFE without asignement, we don't modifiy the IPython namespace +(function (IPython) { + "use strict"; + + var CellToolbar = IPython.CellToolbar; + + var raw_edit = function(cell){ + + var md = cell.metadata + var error_div = $('
').css('color','red') + + var textarea = $('