To be clear, I have completed the following steps: I cannot see the new button in WikiEditor that the documentation says should appear. I am having real trouble in getting this extension to work. + 'svgedit-editbutton-create', 'svgedit-edit-tab', Index: SVGEdit.php = - SVGEdit.php (revision 83596) +++ SVGEdit.php (working copy) -59,6 +59,7 ), 'svgedit-summary-default' => '/* Modified in svg-edit */', + 'svgedit-editbutton-create' => 'Create image with SVGEdit', 'svgedit-summary-label' => 'Edit summary', 'svgedit-editbutton-edit' => 'Edit drawing', Var initHeight = Math.max(minHeight, minHeight) Var minHeight = Math.min(windowHeight, preferredHeight) var preferredHeight = origHeight + 180 // leave space for toolbars and UI inside the iframe + var preferredHeight = origHeight ? origHeight + 180 : 500 // leave space for toolbars and UI inside the iframe var windowHeight = $(window).height() - 40 // leave space for our toolbar outside the iframe Mw.svgedit.openEditor(options, -60,7 +60,7 url += '?dimensions=' + origWidth + ',' + origHeight Index: modules/ = - modules/ (revision 83596) +++ modules/ (working copy) -22,7 +22,7 var trigger = function() ) :D I'll peek it over when my MW time permits. VitaliyFilippov 17:15, 19 March 2011 (UTC) Reply Actually that's quite clever. Patch fixes some js errors and uses #mw-imagepage-nofile as placeholder for SVGEdit, plus text on the button is changed so it tells about creating a new file. or is the idea to show on non-existing File: pages so it then saves to that file? - brion 19:47, 9 March 2011 (UTC) Reply Yeah, the idea is to show the button on non-existing File: pages. Brion, could you include this patch into trunk? - VitaliyFilippov 17:53, 9 March 2011 (UTC) Reply Looks like this duplicates the recent work adding a button to the edit toolbar to create a new file. :D - brion Apply this simple patch and it will be possible. ![]() Alterego 02:29, 16 December 2010 (UTC) Reply It should indeed be possible to add that. This extension is awesome but is there a way to create a new svg from scratch without having to upload one? That's the killer missing feature.
0 Comments
Leave a Reply. |