diff --git a/programs/editor/editor.css b/programs/editor/editor.css index eb48e7f6..21289a5d 100644 --- a/programs/editor/editor.css +++ b/programs/editor/editor.css @@ -34,10 +34,23 @@ html, body, #mainContainer { } -#toolbar { +#menubar { border-top-left-radius: 5px; border-top-right-radius: 5px; + border: none; overflow: hidden; + background-image: url("http://ajax.googleapis.com/ajax/libs/dojo/1.8.0/dijit/themes/claro/images/standardGradient.png"); + background-color: #E6E6E7; +} + +#toolbar { + background: none; + overflow: hidden; + background-color: #E6E6E7; +} + +.claro .dijitToolbar .dijitButton .dijitButtonNode, .claro .dijitToolbar .dijitDropDownButton .dijitButtonNode, .claro .dijitToolbar .dijitComboButton .dijitButtonNode, .claro .dijitToolbar .dijitToggleButton .dijitButtonNode, .claro .dijitToolbar .dijitComboBox .dijitButtonNode { + background: none; } #container { diff --git a/programs/editor/editor.js b/programs/editor/editor.js index a2d97683..31695123 100644 --- a/programs/editor/editor.js +++ b/programs/editor/editor.js @@ -93,4 +93,4 @@ function init() { }); } -window.setTimeout(init, 1); +window.onload = init; \ No newline at end of file diff --git a/programs/editor/index.html b/programs/editor/index.html index c863f13f..3b83bf87 100644 --- a/programs/editor/index.html +++ b/programs/editor/index.html @@ -27,6 +27,7 @@ window["widgets"] = {};

Doc

+
diff --git a/programs/editor/widgets.js b/programs/editor/widgets.js index 7ee2c2c6..09685df6 100644 --- a/programs/editor/widgets.js +++ b/programs/editor/widgets.js @@ -6,6 +6,28 @@ function loadWidgets(documentObject) { dojoWin = win; }); + // Menubar + require(["dojo/ready", "dijit/MenuBar", "dijit/PopupMenuBarItem", "dijit/Menu", "dijit/MenuItem", "dijit/DropDownMenu"], function(ready, MenuBar, PopupMenuBarItem, Menu, MenuItem, DropDownMenu) { + ready(function() { + var menuBar = new MenuBar({}, "menubar"); + menuBar.addChild(new PopupMenuBarItem({ + label: "File" + })); + menuBar.addChild(new PopupMenuBarItem({ + label: "Edit" + })); + menuBar.addChild(new PopupMenuBarItem({ + label: "View" + })); + menuBar.addChild(new PopupMenuBarItem({ + label: "Insert" + })); + menuBar.addChild(new PopupMenuBarItem({ + label: "Format" + })); + }); + }); + // Toolbar require(["dijit/Toolbar"], function(Toolbar) { toolbar = new Toolbar({}, "toolbar");