Untested, but I believe this should work:
jQuery(document).ready(function (){
jQuery(".select-image").click(function() {
var custom_uploader = wp.media({
title: 'Selecteer een afbeelding',
button: {
text: 'Selecteer'
},
multiple: false
});
custom_uploader.on('select', function() {
custom_uploader.Jcrop();
});
custom_uploader.open();
});
});
Related Posts:
- Custom post type with a forced fixed aspect ratio image crop
- Generated media have incorrect aspect ratio
- Force image crop size in media editor
- Disable Responsive Image Sizes crop
- How to Protect Uploads, if User is not Logged In?
- Cleanup uploads folder, Media Library db structure
- Rendering the uploaded file in a wp.media object
- WordPress Media Manager 3.5 – default link to
- Linking a PDF as a downloadable document
- Failed to import media from a local wordpress site to a live one
- Rename “Add Media” Button To “Add Images”
- How would I go about listing only unattached media in say a sidebar?
- Filter what image sizes get generated
- Change default tab of media manager
- Is email post notify visitor on new media upload possible?
- Restricting access to files within a specific folder [duplicate]
- get total number of images from media using xml-rpc
- Audio Playlist : How to bind events for “track change”, “track end”?
- Plugin to download attached media files?
- Failed media import
- Upload mobi and epub file in the MEDIA of WP
- Change WordPress’ media upload URL?
- Image archive without date
- Disable edit option in Media library
- How to get an image url from media library
- Uploading Media gives error “Missing a temporary folder.”
- Media is shown in listview but not in gridview whenever i activate my Custom Theme
- Disable mouse image resizing in editor
- How to insert an Audio Player in a Post or Page?
- Proper way to change the path of uploads folder for existing WordPress site
- 3.5 Media Manager – callout in metaboxes
- Force WordPress, themes & plugins into using defined sizes
- Add instructions For Media Library Uploads
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Media Manager: refresh library after new selection
- WordPress Media Image Manager — Creating Lots and Lots of Odd Sized Images
- Large image size stuck on old value, even for new images
- Can I force all uploaded images to be reduced in quality?
- Cannot upload anything via wordpress
- Video uploaded with the native media uploader gives Error 404
- Audio Player for MP3 Files for WordPress
- How select multiple document as like media gallery
- Rebuild the entire WordPress uploads folder
- See List View – or Image titles- of Media Library when “Add Media” button is used
- adding images column to admin edit columns not working for SVG
- It is possible to add custom media size in admin media edit?
- Limit number of images to upload in wp.media function
- Link to resized media file
- Allow Editor Role to Edit Media
- Error: Warning: strpos() in media.php
- Bulk image importing from folders
- Custom controller for video that is added from editor
- How to get media source of text editor in WordPress
- WordPress media file link with fancybox
- how to upload file to media library using link [closed]
- Editing image dimension – to edit the main image file
- Upload video in custom folder
- Media Library not showing images but still acknowledges existence
- Set Maximum Width for an uploaded image
- Too slow Image upload in WordPress Media Library as image number increases
- RSS audio enclosures have length of zero (podcast duration is missing)
- Use staging media files on development site in WordPress
- Getting a specific value out of array using get_attached_media
- WordPress 3.6 native player is not responsive?
- Thumbnail images chopped off but not cropped to exact dimensions
- Can’t locate custom image sizes defined by child theme
- Uploading a media item with the wp-json API to a specific path
- How to programatically toggle the media setting “Organize my uploads into month- and year-based folders”?
- Unable to add logo or header [closed]
- How to disable (and hide) the Media Library for certain users?
- Admin edit S3 Media file?
- Disable image rename on upload
- Cropping thumbnails to specific dimensions on front end post
- Specific folder and no thumbnail generation for media_sideload_image
- Publish / unpublish media items in the media library
- Use media files from a different server just for one custom type
- Pre-load images into a new users media gallery
- How to get all id_attachment with one loop?
- Media isn’t showing in WordPress library but is available in uploads folder
- WP REST API Create media return Timeout Gateway in response, but media created
- Media Library not loading
- How do I get WordPress to create resizes of a supplied default image in a theme?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- TwentySeventeen $content_width not updated in admin
- Change behavior of the “ADD Media” buttom
- Disable wordpress gif compression?
- wordpress doesnt add media.css file
- Change default ‘file not supported’ error message
- How to create different media uploader frames / filter library depending on a custom action
- cant able to upload media to my wordpress blog
- Change image in media library at specific time
- Elegant way to signify inheritance and relationship between posts
- Media Player gone on front end
- Why does uploading a media file a second time restore older version?
- Import of 200+ sermons
- add file name column to media library to sort by
- After import, oEmbeds non-functional until manual republish
- Cache of site on browser
- Looking for a way to insert PDF image preview in TinyMCE