added Erik's patch to fix issue 223

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@710 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-09-24 18:47:03 +00:00
parent d1fe17fc60
commit 8bfc7ddc92
2 changed files with 44 additions and 54 deletions

View File

@@ -2,9 +2,22 @@
<head>
<title>SVG Edit</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
/** this method adds the script that overrides the default open/save handlers */
function addHandlers()
{
var cdoc = document.getElementById("container").contentDocument;
if(cdoc)
{
var scriptelm = cdoc.createElement("script");
scriptelm.src = "../handlers.js";
cdoc.getElementsByTagName("head")[0].appendChild(scriptelm);
}
}
</script>
</head>
<body>
<object id="container" data="editor/svg-editor.html">
<object id="container" data="editor/svg-editor.html" onload="addHandlers()">
Failed to load for some reason.
</object>
</body>