imageBrowser.transport.imageUrl String|Function
The URL responsible for serving the original image. A file name placeholder should be specified. By default the placeholder value is URL encoded. If this is not desired, use a function.
Example - imageUrl as String
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
imageBrowser: {
transport: {
imageUrl: "/content/images/{0}" //the placeholder will be replaced with the current virtual path and selected file name
}
}
});
</script>
Example - imageUrl as Function (can be used to avoid automatic URL encoding)
<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
imageBrowser: {
transport: {
imageUrl: function (e) {
return "/content/images/" + e;
}
}
}
});
</script>