Gisellameloni / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

wordpress plugin #1215

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I know this may be outside the scope of the project, but bundling a wordpress 
plugin which uses svg-edit and allows SVGs to be directly created/edited and 
included in a wordpress blog would boost the project's visibility, and be a 
perfect application of the editor.

Original issue reported on code.google.com by edgi...@gmail.com on 28 May 2014 at 9:01

GoogleCodeExporter commented 8 years ago
I strongly agree! There is a lot of potential for something like this. I think 
WP would benefit from having a built-in graphics editor. It unlikely it would 
ever get added to WP's core codebase but it would probably get plenty of love 
from plugin users. I have created a rudimentary WP plugin that creates the 
admin user interface which displays SVG-Edit as an iframe. It works, but is a 
little hackish. In the future I plan on stripping out SVG-Edit's head assets 
and merging them with WP's head on that specific page, which shouldn't be too 
hard. I've modified SVG-Edit into a PHP file that hides/shows elements based on 
the logged in user's role. My site had a use case for having a graphics editor 
role/capability where the person could create templates and standard users that 
could only modify existing templates. The media library is replaced by a PHP 
file manager. I made this plugin over a year ago now and haven't really touched 
it since. I plan on revisiting this subject within the next couples of months 
(as free time allows) because there's a lot that can be done beyond the simple 
methods I have in place. Using WP's media uploader and library for one. I'm 
planning on making a custom post type "graphic" and have SVG-Edit reference 
everything it needs via post meta and such, saving the final image as the 
featured image for that "post" (graphic). This could indeed turn into a very 
useful plugin, especially for bloggers who want unique graphics in their site 
but might not have access to photoshop or similar software.

See attached photo for how it looks in my site.

Original comment by GoTeamSc...@gmail.com on 25 Sep 2014 at 6:57

Attachments: