wPaint icon indicating copy to clipboard operation
wPaint copied to clipboard

image path duplicated on multiple instances

Open beck24 opened this issue 10 years ago • 4 comments

My scenario: I'm running wPaint in a lightbox, when the lightbox opens it calls the init functions for wPaint. On the first opening all works great. However if the lightbox is closed, then reopened, the menu icons are missing. Debugging this has lead me to the conclusion that the path setting is appended for each time wPaint is initiated. See screenshot

The path is /mod/draw/vendors/wPaint/ This is correct on the first instance, on the second instance it tries to retrieve images from /mod/draw/vendors/wPaint//mod/draw/vendors/wPaint/... Third and fourth inits continue to append the base path setting

screen shot 2014-12-13 at 10 41 41 pm

beck24 avatar Dec 14 '14 06:12 beck24

Thanks for a fantastic library by the way - I was using raphael and am switching over to this due to the better default functionality and ease of use!

beck24 avatar Dec 14 '14 06:12 beck24

Oh, looks like there are already PR's to address this, just no tickets as far as I can tell

https://github.com/websanova/wPaint/pull/87/files

beck24 avatar Dec 14 '14 08:12 beck24

hello sir can we add more functionality in this plugin like, getting all shapes value in json format when creating shapes as ovals , rectangles, circle and strings values along with this and then retrieve that exact values of letf, top, width, height and colors values or and also can be editable those component is it possible. please revert me.

RabindraSharma avatar Jul 21 '21 10:07 RabindraSharma

Yes you can add more functionality on that like adding custom shapes as per your requirement.

ketanvekariya avatar Jul 21 '21 14:07 ketanvekariya