(function () { 'use strict'; /* globals jQuery */ /* * ext-server_moinsave.js * * Licensed under the MIT License * * Copyright(c) 2010 Alexis Deveria * 2011 MoinMoin:ReimarBauer * adopted for moinmoins item storage. it sends in one post png and svg data * (I agree to dual license my work to additional GPLv2 or later) * */ svgEditor.addExtension('server_opensave', { callback: function callback(_ref) { var canvg = _ref.canvg, encode64 = _ref.encode64, buildCanvgCallback = _ref.buildCanvgCallback; var $ = jQuery; var svgCanvas = svgEditor.canvas; var saveSvgAction = '/+modify'; // Create upload target (hidden iframe) /* const target = */$('