Working on samples.
This commit is contained in:
@@ -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>
|
||||
|
9
wise-editor/src/main/webapp/html/container.json
Normal file
9
wise-editor/src/main/webapp/html/container.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"readOnly":"false",
|
||||
"zoom":0.85,
|
||||
"saveOnLoad":false,
|
||||
"size":{
|
||||
"width":800,
|
||||
"height":600
|
||||
}
|
||||
}
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user