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

2 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 02 Feb 2009 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 04 Feb 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top