From e44f7d4bb1f5e1b2e734ef784c83b6c2d46f3373 Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Wed, 17 Feb 2010 16:41:29 +0000 Subject: [PATCH] Add back in XML prolog for the default save handler git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1401 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index b1f7923c..ffba4c64 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -171,6 +171,9 @@ function svg_edit_setup() { var strokePaint = new $.jGraduate.Paint({solidColor: "000000"}); // solid black var saveHandler = function(window,svg) { + // by default, we add the XML prolog back, systems integrating SVG-edit (wikis, CMSs) + // can just provide their own custom save handler and might not want the XML prolog + svg = "\n" + svg; // Creates and opens an HTML page that provides a link to the SVG, a preview, and the markup. // Also includes warning about Mozilla bug #308590 when applicable