How to add tool tip for editor content

2 posts, 0 answers
  1. Uma
    Uma avatar
    18 posts
    Member since:
    Jan 2012

    Posted 20 Feb 2012 Link to this post

    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

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Feb 2012 Link to this post

    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.
Back to Top