Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In a recent project I had to integrate this module with the Jcrop API so that I could set my own callbacks.
I'm wondering if there is an easy way to do this?
Comment | File | Size | Author |
---|---|---|---|
#2 | integrate_jcrop_api_2090443_2.patch | 1009 bytes | joetsuihk |
#1 | integrate_jcrop_api_2090443_1.patch | 863 bytes | progpapa |
Comments
Comment #1
progpapa CreditAttribution: progpapa commentedI was unable to solve the problem in the OP without changing a few lines in imagefield_crop.js. See attached patch.
With the patch applied I can do the following e.g. in a js file in the theme:
Comment #2
joetsuihk CreditAttribution: joetsuihk commentedlooks good, adding some comment
Comment #3
progpapa CreditAttribution: progpapa commentedSince you are refering to this page in the comments (which makes sense), I thought I'll add a more complete js example:
this should go into the js file of a theme or module, replace "
themename
" with the name of the theme or moduleComment #4
joetsuihk CreditAttribution: joetsuihk commentedPlease review the patch at #2, thanks!