Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
91feccb6
Commit
91feccb6
authored
Feb 20, 2014
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svg-edit: configure link to extensions and images, jslint
parent
2bba2325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/js/gadget_svgedit.js
src/js/gadget_svgedit.js
+11
-8
No files found.
src/js/gadget_svgedit.js
View file @
91feccb6
/*
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
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment