How to edit Firefox title attribute

6 posts, 0 answers
  1. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 15 Sep 2010 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 16 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Didier
    Didier avatar
    13 posts
    Member since:
    Jan 2008

    Posted 02 Mar 2011 Link to this post

    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
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 07 Mar 2011 Link to this post

    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!
  6. Didier
    Didier avatar
    13 posts
    Member since:
    Jan 2008

    Posted 15 Mar 2011 Link to this post

    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 :-)!
  7. Didier
    Didier avatar
    13 posts
    Member since:
    Jan 2008

    Posted 19 Apr 2012 Link to this post

    You wrote Q2 2012 isn't it?
    :-)
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017