Working on samples.

This commit is contained in:
Paulo Veiga
2012-02-02 12:28:54 -03:00
parent b6dd7712f9
commit 8db3e88ad9
6 changed files with 62 additions and 24 deletions

View File

@@ -14,10 +14,8 @@
<h1>Embedded editor sample</h1>
<h2></h2>
<div style="text-align:center">
<iframe src="editor.html?width=800&height=600" width="800" height="600"></iframe>
<div style="text-align:right">
<iframe src="editor.html?confUrl=../html/container.json" width="800" height="600"></iframe>
</div>
</body>
</html>

View File

@@ -0,0 +1,9 @@
{
"readOnly":"false",
"zoom":0.85,
"saveOnLoad":false,
"size":{
"width":800,
"height":600
}
}

View File

@@ -20,10 +20,9 @@
<script type="text/javascript">
var mapId = 'welcome';
var viewMode = false;
$(document).addEvent('loadcomplete', function(resource) {
var designer = buildDesigner(viewMode);
var options = loadDesignerOptions();
var designer = buildDesigner(options);
// Configure default persistence manager ...
mindplot.PersistenceManager.init(new mindplot.LocalStorageManager());
@@ -45,6 +44,7 @@
}
});
</script>
</head>
<body>