简体   繁体   中英

How to check if jcrop widget (cropping area) was created?

I'm using https://jcrop.com/ . The library has four handlers to determine if crop is activated, updated, changed or removed. I need to check when cropping widget was created. There is no event handler for that in docs. Is there a way to determine it?

Try to console.log(cropWidget) right after you instantiate the library. It should show you the object that plugin has created. If not created, in the console you will have null/undefined.

Hope it helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM