Image Preview Up-Drag & Drop AND Preview Image Win Solved

User's avatar
Dylan T.
16:56 Aug 24, 2014
1. Q:Hooking into default CKEditor file drag drop:

Currently this plugin can be bypassed by dragging and dropping an image directly into CKEditor. I know there is a way to disable it. Is there a way to keep the functionality and hook this plugin into it to automatically thumbnail the image and allow preview?

2. Q: New Window for original/larger image size in viewing the post/preview

Is there a way to disable image lightbox and instead offer new window of the image? Essential for mobile that can't handle the modals.
Support team avatar
JS+
10:26 Aug 28, 2014
Hello,

1. Currently Drag'n'Drop functionality is not built in the plugins. But very soon we will present new CKEditor Drag'n'Drop plugin (free to current customers) which can be very flexibly configured to call any of the DOKSoft Image/File plugins according dropped files number, their content type and even their dimensions.Quick/Instant File/Image/Preview/Gallery Upload/Embed plugins will be supported. Follow our Twitter to know about the release: twitter.com/dok_soft

2. Yes, you can redefine template of the inserted image (preview). It is described here: doksoft.com/soft/ckeditor-image-preview-upload/customize.html
As I understood you need this:
config.doksoft_preview_template = 
'<a class="doksoft_preview_href" href="{IMAGE}" target="_blank"><img src="{PREVIEW}" /></a>';

This will open the image in a new tab/window.
Or you can manually change this template to fit your needs.
User's avatar
Dylan T.
11:51 Aug 28, 2014
Very much appreciated. Thank you. Looking forward to the drag and drop functionality too.