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

[Solved] Image Title Property

1 Answer 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Cody
Top achievements
Rank 1
Cody asked on 30 Jun 2008, 06:20 PM
We need to be able to specify all image "title" properties from the RadEditor. However, I don't see a field for it in the Set Image Properties window (or anywhere else). Our admin isn't HTML proficient and won't be able to add it using the HTML view. Is there a way to specify the image title?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 01 Jul 2008, 03:31 PM
Hello Cody,

The Set Image Properties, Image Manager and Properties Inspector module allow the user to set the Image Alt attribute. If this not enough for you and you want to set a "title" attribute, then you can do that by using the OnClientPasteHtml event of RadEditor.

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 - you can use the provided code to add programmatically the needed title attribute to the inserted image.
  • Make modifications to a table being inserted (e.g. set a specific classname, etc)
  • Examine or modify a link before it is inserted

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Cody
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or