Upload and Insert Images inline without Image Manager

2 posts, 0 answers
  1. Gary Choy
    Gary Choy avatar
    1 posts
    Member since:
    Dec 2009

    Posted 03 Dec 2009 Link to this post

    Hello,

    I was wondering if there's a quick way to bypass Image Manager to upload and insert images into the editor?

    Basically we need:
    - Upload button right on Toolbar of Editor instead of inside the Image Manager
    - That button opens the "Upload dialog" as normal but limit user to upload 1 file only if possible
    - Uploads to location set in "UploadPaths" directory
    - Once clicked "Upload" button in Upload dialog; it will automatically Insert also as if you pressed "Insert" in Image Manager.
    - Then puts Image inline with text in Editor.

    I can't seem to find how ImageManager.ascx access the upload dialog so I can't change it to work this way.  I appreciate any help on this.

    Thanks.
    Gary

  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 08 Dec 2009 Link to this post

    Hi Gary,

    In order to achieve such functionality you need to create and register custom dialog - RadEditor's  API allows you to that. You can find information regarding custom dialogs in the following articles:
    Add Custom Dialogs
    Editor / Custom Dialogs

    For your convenience I have attached a sample project for you to check it out.


    Best wishes,
    Dobromir
    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.
Back to Top