Hiding Content area tooltip (title)

3 posts, 0 answers
  1. Cristian
    Cristian avatar
    9 posts
    Member since:
    Aug 2013

    Posted 05 Oct 2015 Link to this post

    Hi guys. 

     I'm trying to hide the content's area tooltip of radeditor.

    Doing some research in the forum I found the following links

    http://www.telerik.com/forums/disable-title-on-content-area

     ​http://www.telerik.com/forums/hiding-radeditor-tooltip

    But when I run my project it throws javascript error editorLoad is undefined

    Here's the declaration of the editor:​

    01.  <telerik:RadEditor runat="server" ID="desc" MaxTextLength="1500"   Language="es-ES" EditModes="Design, Preview" Content='<%# DataBinder.Eval(Container, "DataItem.Descripcion") %>' OnClientLoad="editorLoad">
    02. 
    03.                                        <CssFiles>
    04.                                             <telerik:EditorCssFile  Value="~/SalaPrensaAdmin.css"/>
    05.                                        </CssFiles>
    06.                                            <Languages>
    07.                                                <telerik:SpellCheckerLanguage Code="es-ES" Title="Español"  />
    08.                                            </Languages>
    09.                                        <Tools>
    10.                                            <telerik:EditorToolGroup>
    11.                                                <telerik:EditorTool Name="InsertLink"  Text="Insertar vínculo"/>
    12.                                                <telerik:EditorTool Name="ApplyClass"  Text="Elegir clase"/>
    13.                                                <telerik:EditorTool Name="AjaxSpellCheck" Text="Verificar ortografía" />
    14.                                                <telerik:EditorTool Name="FormatBlock" Text="Elegir formato" />
    15.                                                <telerik:EditorTool Name="InsertParagraph" Text="Insertar párrafo"/>
    16.                                            </telerik:EditorToolGroup>
    17.                                        </Tools>
    18. 
    19. 
    20.<TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>
    21.                                    </telerik:RadEditor>
    22.                                    <script type="text/javascript">
    23.                                        function editorLoad(editor) {
    24.                                            var contentAreaEl = editor.get_contentAreaElement();
    25.                                            contentAreaEl.removeAttribute("title");
    26.                                        }
    27.</script>

    Can you please help me with this.

    Hope your help.

     Best regards.

    Cristian

     

     

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 05 Oct 2015 Link to this post

    Hello Cristian,

    By looking at this piece of markup: Content='<%# DataBinder.Eval(Container, "DataItem.Descripcion") %>', I can define that this is a template. Putting the script in such a template would not work as the function will not be declared in the global scope when editor is loaded. 

    Therefore, you should add the script element that way so that the function to be declared properly—after the form closing tag, or in the head tag. 

    Regards,
    Ianko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cristian
    Cristian avatar
    9 posts
    Member since:
    Aug 2013

    Posted 06 Oct 2015 in reply to Ianko Link to this post

    Thanks Ianko tried that approach and now is working like a charm
Back to Top