I\'m trying to integrate the svg edit - editor, which is using jQuery, into Magento. The problem is that Magento uses Prototype, and therefore I\'m using the jQuery.no
jQuery.no
try to put your function attr into
(function( $ ){ })( jQuery );
so it will look like
(function( $ ){ jQuery.fn.attr = function(key, value) { var len = this.length; if(!len) return this; for(var i=0; i