Added extension that adds Image library option to main menu, includes minimal local and external libraries

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1630 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-07-14 18:05:03 +00:00
parent 5a66cd4f9f
commit d627c01d1e
4 changed files with 254 additions and 44 deletions

View File

@@ -394,6 +394,10 @@ var Utils = this.Utils = function() {
// Cross-browser compatible method of converting a string to an XML tree
// found this function here: http://groups.google.com/group/jquery-dev/browse_thread/thread/c6d11387c580a77f
"text2xml": function(sXML) {
if(sXML.indexOf('<svg:svg') !== -1) {
sXML = sXML.replace(/<(\/?)svg:/g, '<$1').replace('xmlns:svg', 'xmlns');
}
var out;
try{
var dXML = ($.browser.msie)?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser();