Hi,
The new imagebrowser enhancement is great - I just need a document browser that is similar in functionality like the current imagebrowser but allows me to link to the documents that a user has uploaded - similar to DocumentBrowser used in the ajax Editor. Is this possible or is it a feature that is soon to be added?
Thank you,
David A.
The new imagebrowser enhancement is great - I just need a document browser that is similar in functionality like the current imagebrowser but allows me to link to the documents that a user has uploaded - similar to DocumentBrowser used in the ajax Editor. Is this possible or is it a feature that is soon to be added?
Thank you,
David A.
6 Answers, 1 is accepted
0
Hi David,
Currently the image browser is designed to work only with image files. In order to enhance it to suit your needs, you need to configure the allowed file types, then provide custom thumbnails for non-image files via the thumbnail service and finally, edit the Editor's source, namely, the ImageCommand exec method, which takes care of inserting the selected image from the image browser to the Editor's content area.
Currently we have no intentions to provide the above out-of-the-box in the short term, unless a lot of people request it.
Regards,
Dimo
the Telerik team
Currently the image browser is designed to work only with image files. In order to enhance it to suit your needs, you need to configure the allowed file types, then provide custom thumbnails for non-image files via the thumbnail service and finally, edit the Editor's source, namely, the ImageCommand exec method, which takes care of inserting the selected image from the image browser to the Editor's content area.
Currently we have no intentions to provide the above out-of-the-box in the short term, unless a lot of people request it.
Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David A.
Top achievements
Rank 1
answered on 20 Feb 2013, 12:56 AM
Dimo,
Is it possible to at least upload documents via an upload control in the Editor? I tried using the upload control but there is no ToClientTemplate() method. I'm surprised this isn't at least on the radar for you guys, since it is an integral part of the ajax Editor.
Thanks,
David
Is it possible to at least upload documents via an upload control in the Editor? I tried using the upload control but there is no ToClientTemplate() method. I'm surprised this isn't at least on the radar for you guys, since it is an integral part of the ajax Editor.
Thanks,
David
0
Hello David,
I am not sure how is your question different from what we have been discussing so far.
"Is it possible to at least upload documents via an upload control in the Editor?"
You can upload any file via the Editor's ImageBrowser, given that it has an allowed extension. What the Editor does not support and requires a custom implementation is how to create a hyperlink that will point to the uploaded file. This is possible, but requires modifying the Editor's source, as outlined in my previous reply.
Regards,
Dimo
the Telerik team
I am not sure how is your question different from what we have been discussing so far.
"Is it possible to at least upload documents via an upload control in the Editor?"
You can upload any file via the Editor's ImageBrowser, given that it has an allowed extension. What the Editor does not support and requires a custom implementation is how to create a hyperlink that will point to the uploaded file. This is possible, but requires modifying the Editor's source, as outlined in my previous reply.
Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David A.
Top achievements
Rank 1
answered on 20 Feb 2013, 01:38 PM
Dimo,
Sorry for not making that more clear. The idea you suggested would either be mixing documents and images, or hoping the user will separate images and documents into different folders. I am interested in the upload control being used as a custom button.
Thank you.
David A.
Sorry for not making that more clear. The idea you suggested would either be mixing documents and images, or hoping the user will separate images and documents into different folders. I am interested in the upload control being used as a custom button.
Thank you.
David A.
0
Accepted
Hello David,
Surely you can use a custom Editor tool with a Kendo UI Upload. In this way you will be able to use the ImageBrowser for images and the custom tool for linking non-image files.
Greetings,
Dimo
the Telerik team
Surely you can use a custom Editor tool with a Kendo UI Upload. In this way you will be able to use the ImageBrowser for images and the custom tool for linking non-image files.
Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David A.
Top achievements
Rank 1
answered on 20 Feb 2013, 08:55 PM
Thanks Dimo.
I was able to get an upload button with the following code in the editor:
with the following css to have the button display inline:
I was able to get an upload button with the following code in the editor:
.CustomTemplate(t=>t.Template(
Html.Kendo().Upload()
.Name("documents")
.ShowFileList(false)
.Messages(m=>m.Select("Upload"))
.Async(async => async
.Save("Upload", "SitePage"))
.ToClientTemplate().ToHtmlString()))
.k-widget .k-upload {
display:inline-block;
}