Skip to content
Snippets Groups Projects
Commit d32ad09c authored by Jared Hancock's avatar Jared Hancock
Browse files

Manually setup Redactor for drap+drop

parent 1c757ba4
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,10 @@ RedactorPlugins.draft = {
self.opts.imageUpload =
'ajax.php/draft/'+data.draft_id+'/attach';
self.opts.imageUploadErrorCallback = self.displayError;
// XXX: This happens in ::buildBindKeyboard() from
// ::buildAfter(). However, the imageUpload option is not
// known when the Redactor is init()'d
self.$editor.on('drop.redactor', $.proxy(self.buildEventDrop, self));
}
});
this.opts.original_autosave = this.opts.autosave;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment