Skip to content

Instantly share code, notes, and snippets.

@vinothbabu
Created March 22, 2015 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinothbabu/0efe03954b361f8c99d5 to your computer and use it in GitHub Desktop.
Save vinothbabu/0efe03954b361f8c99d5 to your computer and use it in GitHub Desktop.
Dojo Editior template
<!DOCTYPE html>
<html>
<head>
<link href="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dijit/themes/claro/claro.css" rel="stylesheet" type="text/css" />
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.1/dojo/dojo.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body class="claro" style="height:500px; width: 100%">
<div data-dojo-type="dijit/layout/BorderContainer" style="width:100%; height:100%">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'top' ">
<div data-dojo-type="dijit/MenuBar">
<div data-dojo-type="dijit/PopupMenuBarItem"><span>File</span>
<div data-dojo-type="dijit/DropDownMenu">
<div data-dojo-type="dijit/MenuItem">Open</div>
<div data-dojo-type="dijit/MenuItem">Save</div>
<div data-dojo-type="dijit/PopupMenuItem"><span>Recent</span>
<div data-dojo-type="dijit/DropDownMenu">
<div data-dojo-type="dijit/MenuItem">Recent 1..</div>
<div data-dojo-type="dijit/MenuItem">Recent 2..</div>
</div>
</div>
</div>
</div>
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'center'">
<div data-dojo-type="dijit/Editor"></div>
</div>
</div>
<script>
require(["dojo/parser"], function(parser){
parser.parse();
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment