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
f9b5718e
Commit
f9b5718e
authored
May 29, 2012
by
Tristan Cavelier
Committed by
Sebastien Robin
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OfficeJS can use svg-edit to edit svg images now!
parent
6458e058
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
OfficeJS/component/svg-edit.html
OfficeJS/component/svg-edit.html
+32
-0
OfficeJS/js/officejs.js
OfficeJS/js/officejs.js
+10
-1
No files found.
OfficeJS/component/svg-edit.html
0 → 100644
View file @
f9b5718e
<div>
<input
type=
"text"
name=
"fileName"
id=
"input_fileName"
value=
""
placeholder=
"File name here"
/>
<button
type=
"submit"
class=
"btn btn-primary"
onclick=
"OfficeJS.save($('#input_fileName').attr('value'));"
>
<i
class=
"icon-download-alt icon-white"
></i>
Save
</button>
<button
type=
"submit"
class=
"btn"
onclick=
"OfficeJS.load($('#input_fileName').attr('value'));"
>
<i
class=
"icon-upload"
></i>
Load
</button>
<button
type=
"submit"
class=
"btn btn-danger"
onclick=
"OfficeJS.remove($('#input_fileName').attr('value'));"
>
<i
class=
"icon-remove icon-white"
></i>
Remove
</button>
</div>
<iframe
src=
"lib/svg-edit/svg-editor.html"
id=
"svg_edit_frame"
style=
"width:100%;
height:500px;"
scrolling=
"no"
>
</iframe>
OfficeJS/js/officejs.js
View file @
f9b5718e
...
@@ -96,7 +96,16 @@
...
@@ -96,7 +96,16 @@
'
svg-edit
'
:
{
'
svg-edit
'
:
{
type
:
'
editor
'
,
type
:
'
editor
'
,
path
:
'
component/svg-edit.html
'
,
path
:
'
component/svg-edit.html
'
,
gadgetid
:
'
page-content
'
frameid
:
'
svg_edit_frame
'
,
gadgetid
:
'
page-content
'
,
getContent
:
function
()
{
return
document
.
getElementById
(
this
.
frameid
).
contentWindow
.
svgCanvas
.
getSvgString
();
},
setContent
:
function
(
content
)
{
document
.
getElementById
(
this
.
frameid
).
contentWindow
.
svgCanvas
.
setSvgString
(
content
);
}
},
},
slickgrid
:
{
slickgrid
:
{
type
:
'
editor
'
,
type
:
'
editor
'
,
...
...
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