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

Hiding Content area tooltip (title)

2 Answers 39 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 06 Oct 2015, 01:33 AM

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 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 06 Oct 2015, 04:54 AM
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
0
Cristian
Top achievements
Rank 1
answered on 06 Oct 2015, 01:10 PM
Thanks Ianko tried that approach and now is working like a charm
Tags
Editor
Asked by
Cristian
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Cristian
Top achievements
Rank 1
Share this question
or