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

[Solved] Insert Image through ImageManager

1 Answer 116 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dipsa Shah
Top achievements
Rank 1
Dipsa Shah asked on 06 Jul 2009, 02:55 PM
Hi,

When I am inserting any image through Image manager, I am not getting Image name in HTML View.

What I want to do, When I insert any Image, before it get Inserted in Editor, I want to replace its name with another name. So thats why I need to know one funtion which will be called when I click on Insert button of Image Mamager.

Let me also know that how would I get image name when I Insert Image ?

Thanks
Dipsa

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jul 2009, 08:31 AM
Hi Dipsa,

You can use the OnClientPasteHtml event property of RadEditor to modify the inserted through the Image manager content.

The OnClientPasteHtml event is useful in scenarios where the developers need to examine or modify the HTML to be pasted by an editor tool before it is inserted in the editor content area. Some common cases where the event can be used are:

  • Check whether user specified alt attribute for an image
  • Make modifications to a table being inserted (e.g. set a specific classname, etc)
  • Examine or modify a link before it is inserted
  • Modify the pasted content before its insertion in the content area


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Dipsa Shah
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or