Check in patch from Thinker Li to adapt SVG-edit into a Firefox extension

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@429 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-08-21 12:33:56 +00:00
parent 790c3402d5
commit dfd747f9c5
6 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
function start_svg_edit() {
var url = "chrome://SVG-edit/content/editor/svg-editor.html";
var browser = document.getElementById("content");
window.openDialog(url, "SVG Editor",
"width=1024,height=700,menubar=no,toolbar=no");
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!DOCTYPE overlay SYSTEM "chrome://chromelist/locale/ChromeListOverlay.dtd" >
<overlay id="SVGEditToolsOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"
src="chrome://SVG-edit/content/SVG-edit-overlay.js" />
<menupopup id="menu_ToolsPopup">
<menuitem insertafter="devToolsSeparator" label="SVG Editor"
oncommand="start_svg_edit();" />
</menupopup>
</overlay>