Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom crop button #143

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

kriskd
Copy link

@kriskd kriskd commented Jul 21, 2015

This PR adds two new options:

  • customCropButtonId
  • cropControlResetBtn

Similar to the customUploadButtonId, customCropButtonId assigns the crop/save function to a button/link with the designated CSS ID and removes the green crop icon. Defaults to an empty string.

cropControlResetBtn is a boolean option to display or not display the red reset icon. Defaults to true.

@kriskd
Copy link
Author

kriskd commented Sep 8, 2015

Note I had to add an inline style to the cropImgWrapper div setting top: 0 otherwise the image render per the screenshot. This image is from my branch of the plugin but I confirmed this happened on master as well.

screenshot 2015-09-08 14 23 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant