This is a migrated thread and some comments may be shown as answers.

Enabling Drag of image from Windows Explorer to Editor, or paste say a screenshot into Editor ...

1 Answer 73 Views
Editor
This is a migrated thread and some comments may be shown as answers.
hkdave95
Top achievements
Rank 2
hkdave95 asked on 02 Feb 2009, 07:43 AM
Hi

How do I gop about adding images to my RadEditor using simple drag and drop, or PrintScreen & paste ?

Will I have to create my own active X control or do you know of any already out there ?

Also I understand that this functionality might be unavailable due to the settings in some browsers, however, I also understand that this constraint can be removed.

Kind Regards

David

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 Feb 2009, 04:45 PM
Hi David,

When copying an image from external location such as MS Word document, a PDF file or the clipboard, then its src points to your hard disk, which is not accessible in Internet.

In order to use images in a web page, they need to be accessible using HTTP protocol - that is, it means they must be uploaded to a web server (which can be your own computer of course, only that the images are provided by the web server software, and not by the operating system).

Unfortunately the automatic image upload to the server is not possible with javascript code, because JavaScript cannot access the local file system from the browser - it would be a major security violation.
The automatic image upload cannot be implemented without using ActiveX or some other software, installed on the client, but we do not use either technique because of browser compatibility and that the ActiveX components are forbidden by the corporate networks. We are specialist in ASP.NET and we cannot offer you a good ActiveX component for automatic image upload, but you can search in Google.

What we suggest is to paste the screenshot in program such as MS Paint and save it. After that manually upload the image using the Upload functionality of the RadEditor's Image Manager dialog and insert it into the content area after that.


Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
hkdave95
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or