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

Spelling Checker Resizes Editor

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 10 Dec 2010, 11:41 AM
Hello

Good Day!

I have a problem with my RadEditor when we use Spelling Checker.
The problem is that when I press the Spelling Checker toolbar, the height of the Editor adjust. It will make its height bigger but i have seen in a demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/spellchecker/defaultcs.aspx

that when i press the Spelling checker, the content of the editor adjust. This is very helpfull for me since i dont want to adjust its height during Spelling Checking...

Thanks you

Erwin


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Dec 2010, 02:00 PM
Hi Erwin,

If the editor in the demo behaves OK when the spellchecker is enabled, then you should just upgrade to the latest Q3 2010 release.

You can try the following code for the old versions where the problem exists:

<script type="text/javascript"> 
function OnClientLoad(editor, args)       
{       
    editor.add_spellCheckLoaded(   
    function()    
    {   
        var spell = editor.get_ajaxSpellCheck();                     
        spell.add_spellCheckStart(   
            function(sender, args)    
            {                            
                editor._updateEditorSize(editor.get_element().style.height);   
            });                              
    } );          
}   
</script> 
<telerik:radeditor OnClientLoad=OnClientLoad runat="server" ID="RadEditor1"></telerik:radeditor> 


All the best,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Erwin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or