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

How to edit Firefox title attribute

5 Answers 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gavin Pollock
Top achievements
Rank 1
Gavin Pollock asked on 15 Sep 2010, 02:39 PM
Hey there,

Internet Explorer and Fire Fox seem to use different attributes of an image tag to render the tooltip text. Fire Fox uses the 'alt text' as a place holder for unavailable images and the 'title' tag to render the tooltip. Whereas IE seems to use the 'alt text' for both.

Our question is whether or not the RadEditor has a way of editing the 'title' attribute (for FF) through the UI?

Regards,

Gav.

5 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Sep 2010, 04:31 PM
Hi Gav,

RadEditor does not offer UI for setting or modifying the title attribute of the inserted images, but this could be easy implemented by following the instructions below:
1) Register the external dialog files of RadEditor: Customize Built-in Dialogs.
2) Open the SetImageProperties.ascx file and add a new title textbox in the dialog:

<tr class="textAttributes">
     <td class="reLabelCell" style="width: 120px;">
         <label class="reDialogLabel" for="ImageLongDesc">
             <span style="text-align: right;">
                 Title
             </span>
         </label>
     </td>
     <td class="reControlCell">
         <input type="text" id="titleBox" style="width: 165px;" />
     </td>
 </tr>

3) Get a reference to the textbox and assign its value to the resultImage object inside the getModifiedImage function
    getModifiedImage: function () {
                   ...
        this._setClass(resultImage, this._imageCssClassList);
        resultImage.setAttribute("title", $get('titleBox').value);
        return resultImage;

    },

4. Save the file.

For your convenience I have attached the modified SetImageProperties.ascx file.


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
0
Didier
Top achievements
Rank 2
answered on 02 Mar 2011, 03:20 PM
Hi,

I tried the solution explained here. It works fine in the development environment but it doesn't work anymore when the website is precompiled (probably because there is no placeholder files for the .ascx files?).

Is there a solution ?

By the way... for what reason teh attribute title is not part of the standard (there is alt and longdesc but not title...)???

Best regards,

Didier
0
Rumen
Telerik team
answered on 07 Mar 2011, 03:12 PM
Hi Didier,

Before precompiling the web site, you should select the ascx dialog file, open the Properties Pane of Visual Studio and select Copy Always option of the Copy to Output Directory property. Here you can find the PITS Issue: Public URL.

As to your second  question: We decided to include the title field in the Set Image Properties dialog for the Q2 2011 release of RadControls for ASP.NET AJAX.

Best regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Didier
Top achievements
Rank 2
answered on 15 Mar 2011, 09:01 AM
So I'll wait until the Q2 2011 is released as to use the "standard" title will be cleanest way to do the job. Thanks a lot for these good news :-)!
0
Didier
Top achievements
Rank 2
answered on 19 Apr 2012, 04:08 PM
You wrote Q2 2012 isn't it?
:-)
Tags
Editor
Asked by
Gavin Pollock
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Didier
Top achievements
Rank 2
Share this question
or