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
e744799f
Commit
e744799f
authored
May 23, 2014
by
Thibaut Frain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added svg-edit gadget
parent
da082c9e
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
829 additions
and
1 deletion
+829
-1
Gruntfile.js
Gruntfile.js
+10
-1
src/svg_edit/index.html
src/svg_edit/index.html
+794
-0
src/svg_edit/svg_edit.js
src/svg_edit/svg_edit.js
+25
-0
No files found.
Gruntfile.js
View file @
e744799f
...
@@ -284,8 +284,13 @@ module.exports = function (grunt) {
...
@@ -284,8 +284,13 @@ module.exports = function (grunt) {
src
:
'
https://raw.githubusercontent.com/mindmup/bootstrap-wysiwyg/master/bootstrap-wysiwyg.js
'
,
src
:
'
https://raw.githubusercontent.com/mindmup/bootstrap-wysiwyg/master/bootstrap-wysiwyg.js
'
,
relative_dest
:
'
lib/bootstrap-wysiwyg.js
'
,
relative_dest
:
'
lib/bootstrap-wysiwyg.js
'
,
dest
:
'
<%= global_config.dest %>/<%= curl.bootstrapwysiwyg.relative_dest %>
'
dest
:
'
<%= global_config.dest %>/<%= curl.bootstrapwysiwyg.relative_dest %>
'
},
svgedit
:
{
src
:
'
https://svg-edit.googlecode.com/files/svg-edit-2.6.zip
'
,
relative_dest
:
'
lib/svg-edit-2.6
'
,
dest
:
'
<%= global_config.tmp %>/svgedit.zip
'
}
}
// qunit: {
// qunit: {
// all: ['test/index.html']
// all: ['test/index.html']
},
},
...
@@ -309,6 +314,10 @@ module.exports = function (grunt) {
...
@@ -309,6 +314,10 @@ module.exports = function (grunt) {
bootstrap
:
{
bootstrap
:
{
src
:
'
<%= global_config.tmp %>/bootstrap.zip
'
,
src
:
'
<%= global_config.tmp %>/bootstrap.zip
'
,
dest
:
'
<%= global_config.dest %>/lib/
'
dest
:
'
<%= global_config.dest %>/lib/
'
},
svgedit
:
{
src
:
'
<%= global_config.tmp %>/svgedit.zip
'
,
dest
:
'
<%= global_config.dest %>/lib/
'
}
}
},
},
...
...
src/svg_edit/index.html
0 → 100644
View file @
e744799f
This diff is collapsed.
Click to expand it.
src/svg_edit/svg_edit.js
0 → 100644
View file @
e744799f
/*global window, jQuery, rJS, svgCanvas, svgEditor */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
svgEditor
.
setConfig
({
extPath
:
'
../lib/svg-edit-2.6/extensions/
'
,
imgPath
:
'
../lib/svg-edit-2.6/images/
'
});
rJS
(
window
)
.
declareMethod
(
'
getContent
'
,
function
()
{
return
window
.
svgCanvas
.
getSvgString
();
})
.
declareMethod
(
'
setContent
'
,
function
(
content
)
{
window
.
svgCanvas
.
setSvgString
(
content
);
})
.
declareMethod
(
'
clearContent
'
,
function
()
{
window
.
svgCanvas
.
clear
();
});
}(
window
,
rJS
));
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