Commit 91feccb6 authored by Marco Mariani's avatar Marco Mariani

svg-edit: configure link to extensions and images, jslint

parent 2bba2325
/*global window, jQuery, rJS, svgCanvas */
/*jslint evil: true*/
/*jslint indent: 2 */
/*global window, jQuery, rJS, svgCanvas, svgEditor */
"use strict";
(function (window, rJS) {
svgEditor.setConfig({
extPath: '../lib/svg-edit-2.6/extensions/',
imgPath: '../lib/svg-edit-2.6/images/'
});
rJS(window).declareMethod('getContent', function () {
console.log(window.svgCanvas.getSvgString());
return window.svgCanvas.getSvgString();
})
.declareMethod('setContent', function (content) {
}).
declareMethod('setContent', function (content) {
console.log(window.content);
window.svgCanvas.setSvgString(content);
})
.declareMethod('clearContent', function () {
}).
declareMethod('clearContent', function () {
window.svgCanvas.clear();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment