This is a migrated thread and some comments may be shown as answers.
image manager
3 Answers 40 Views
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 06 Nov 2009, 02:31 PM
when uploading images in the RADEditor, if im uploading an image with a name thats already been uploaded, I get an error message telling me that I cant upload because Ive chosen not to overwrite it.  How do I change the upload process to overright existing images

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 11 Nov 2009, 01:38 PM
Hi,

You load a JavaScript file which contains the code below in the File Browser dialogs and then you will be able to programmatically check-in the file override checkbox in the Upload dialog:

Dialog.js:
Sys.Application.add_load(function()
{
    var overwriteCheckBox = document.getElementsByClassName("rfdRealInput");
    overwriteCheckBox[0].checked = true;
    //if (overwriteCheckBox[0] != null) overwriteCheckBox[0].click();
      
});
  
document.getElementsByClassName = function(cl) 
{
    var retnode = [];
    var myclass = new RegExp('\\b'+cl+'\\b');
    var elem = this.getElementsByTagName('*');
    for (var i = 0; i < elem.length; i++) {
    var classes = elem[i].className;
    if (myclass.test(classes)) retnode.push(elem[i]);
    }
return retnode;
};

RadEditor declaration:
<telerik:RadEditor ID="RadEditor1" runat="server" DialogsScriptFile="~/Dialog.js">
    <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" />
    <Content></Content>
</telerik:RadEditor>

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
systems
Top achievements
Rank 1
answered on 12 Oct 2015, 05:30 AM
Hello,
In our web application, we have RadEditor with Image manager and in our case we do not want to show the preview and properties in the image manager window. 
We tried with the CSS but it does not work.  So, can you please suggest the proper way  to hide only the preview and properties in the image manager window of RadEditor.
PFA. 
Thanks,
Vivek.​
0
Vessy
Telerik team
answered on 12 Oct 2015, 09:07 AM
Hi,

I have already answered  your other thread on the subject, you can refer my answer here: http://www.telerik.com/forums/in-editor---image-manager-how-to-hide-preview-and-properties-window

Regards,
Vessy
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
mww
Top achievements
Rank 1
Answers by
Rumen
Telerik team
systems
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or