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

Insert Image from Another Form

1 Answer 78 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Frazer Smith
Top achievements
Rank 1
Frazer Smith asked on 03 May 2010, 06:43 PM

The system that I am working on already has a image library subsystem that we would like to reuse.  I would like to:

  1. Create an aspx page with a RADEditor control and create a custom tool button for the control.
  2. When the user presses the custom button, an existing "Image selector" form is presented (modally).  (We do not want to use the RAD Image Manager).
  3. When the user selects an image and dismisses this form, an HTML <img> tag is constructed and placed on the clipboard and the modal form is dismissed.
  4. At this point, I would like to have the <img> HTML tag inserted into the body of the document being editted in the RADEditor control from the clipboard, automatically.

Is this possible and if so, how would I do it?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 04 May 2010, 10:04 AM
Hi Frazer,

You can implement your own custom dialog that will insert images in the content area of RadEditor.

Please note that it is also not possible to copy content from the clipboard and upload the image to the server with JavaScript due to browser security restrictions. That is why the images should be uploaded on the server and accessible through the HTTP protocol.

Best regards,
Rumen
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Frazer Smith
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or