SVG-Edit foreignObject tool refactored as an extension
Thanks to Alexis Deveria. (Though I did fix one small bug.) My patch-file is now down to a mere 178 lines (a big chunk of which is Revision 569). Also, the font-size for foreignObjects defaults to 16pt, which will be more useful in Instiki.
This commit is contained in:
parent
63f1d34d74
commit
ce47d49e69
8 changed files with 562 additions and 298 deletions
|
@ -43,12 +43,13 @@ $(function() {
|
|||
|
||||
return {
|
||||
name: "ClosePath",
|
||||
svgicons: "extensions/closepath_icons.svg",
|
||||
context_tools: [{
|
||||
type: "tool_button",
|
||||
panel: "closepath_panel",
|
||||
title: "Open or Close path",
|
||||
id: "close",
|
||||
events: { mousedown: toggleClosed }
|
||||
events: { click: toggleClosed }
|
||||
}],
|
||||
callback: function() {
|
||||
$('#closepath_panel').hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue