简体   繁体   English

Kendo编辑器-thumbnailUrl的功能不起作用

[英]Kendo Editor - Function for thumbnailUrl is not working

I'm trying to use the image upload feature of kendo editor. 我正在尝试使用Kendo编辑器的图像上传功能。 Image uploading is working fine, but the thumbnails in the browse window is not showing correctly. 图像上传正常,但是浏览窗口中的缩略图显示不正确。 For achieving this, I'm trying to call a function in thumbnail attribute. 为了实现这一点,我试图在缩略图属性中调用一个函数。 But, this is not firing. 但是,这不是开火。 Please find the code snippet below and help me to find the issue. 请在下面找到代码段,并帮助我找到问题。

transport: { read: "api/imagebrowser/read", thumbnailUrl: function (path, name) { alert('inside thumbnail'); //return "api/imagebrowser/thumbnail?path=" + path + file; }, uploadUrl: "api/imagebrowser/upload", imageUrl: "Content/Images/{0}" }

I'm using WEB API and angularjs. 我正在使用WEB API和angularjs。 Any other suggestions to show the thumbnails are also welcome. 也欢迎显示缩略图的任何其他建议。

thumbnailUrl: function (path, name) {
    path = "yourAPI/read" + "/" + name;
    return path;
}

default path is "", and name is fileName. 默认路径为“”,名称为fileName。

I think you already solved... Good luck. 我想你已经解决了...祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM