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

How to add tool tip for editor content

1 Answer 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 20 Feb 2012, 07:38 AM
Hi,

 I need to add tool tip    on mouse over in editor content.
 


by some content is shown to the user when he places the mouse cursor on top of a given element or text (mouse over).

Could you please tell the way to adding tool tip to editor.

Thanks,
Uma

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Feb 2012, 09:45 AM
Hello,

Try the following javascript.
JS:
function OnClientLoad(editor, args)
   {
       var element = document.all ? editor.get_document().body : editor.get_document();
       $telerik.addExternalHandler(element, "mouseover", function (e)
           {
           var contentAreaIframe = editor.get_contentAreaElement();
           var tooltip = $find("<%=RadToolTip1.ClientID%>");
           tooltip.set_targetControl(contentAreaIframe);
           setTimeout(function ()
               {
               tooltip.show();
           }, 20);
        });
   }

Thanks,
Princy.
Tags
Editor
Asked by
Uma
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or