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

Upload and Insert Images inline without Image Manager

1 Answer 162 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gary Choy
Top achievements
Rank 1
Gary Choy asked on 03 Dec 2009, 06:02 PM
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

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 08 Dec 2009, 09:13 AM
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.
Tags
Editor
Asked by
Gary Choy
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or