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

[Solved] Is it possible to persist the Editor's size?

1 Answer 86 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David Kalsbeek
Top achievements
Rank 1
David Kalsbeek asked on 10 Apr 2009, 09:38 PM
Is it possible for me to detect when the Editor is resized so that I might persist the dimensions?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Apr 2009, 11:52 AM
Hi David,

Here is an example demonstrating how to get a reference to the editor's onResizeEnd function in the OnClientLoad  event of RadEditor which will allow you to detect when the editor is resized:

        <script type="text/javascript">
        function OnClientLoad(editor, args)
        {     
           var oldFunction = editor.onResizeEnd;
          
           editor.onResizeEnd = function()
           {
            oldFunction();
            var width = editor.get_element().style.width;
            var height = editor.get_element().style.height;
            alert("width: " + width + "height: " + height);
           }
        }
        </script>

        <telerik:RadEditor  ID="RadEditor1"  OnClientLoad="OnClientLoad" runat="server"></telerik:RadEditor>


Sincerely yours,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
David Kalsbeek
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or