Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // How to make the justboil.me image upload plugin for TinyMCE 4.x work as the file_browser_callback function
- // This will close the image dialog and pop open the jbimage upload box instead...
- // Hope it helps someone else!
- // - Stephen
- file_browser_callback: function(field_name, url, type, win) {
- tinymce.activeEditor.windowManager.close();
- tinymce.activeEditor.windowManager.open({
- title: 'Upload an image',
- file: '/js/tinymce/plugins/jbimages/dialog-v4.htm',
- width: 350,
- height: 135,
- buttons: [{
- text: 'Upload',
- classes: 'widget btn primary first abs-layout-item',
- disabled: true,
- onclick: 'close'
- }, {
- text: 'Close',
- onclick: 'close'
- }]
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement