I am using this awesome editor, but I have no idea how to pass extra parameters with imageUpload and clipboardUpload.
I would like to be able to post extra params when the user past an image into the editor
$el.redactor({
imageUpload: '/WebUpload/Save',
clipboardUploadUrl: '/WebUpload/Save',
});
Update
as of Redacor v10 the extra param are included
just use uploadImageFields
$el.redactor({
imageUpload: '/WebUpload/Save',
clipboardUploadUrl: '/WebUpload/Save',
uploadImageFields: {
id: 1234,
name: "test123"
},
});
Could not find answer anywhere so I hacked the core redactor.js file
I added
to the options and changed the post to include these params in
pasteClipboardUploadMozilla
andpasteClipboardUpload
and changed
now I can post extra params just by adding
imageUploadExtraParams
objectUpdate
as of Redacor v10 the extra param are included just use
uploadImageFields