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
0
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:
RadEditor declaration:
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.
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.
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
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
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