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

Grey space below editor field

3 Answers 51 Views
Editor
This is a migrated thread and some comments may be shown as answers.
BTRDEV-01
Top achievements
Rank 1
BTRDEV-01 asked on 01 Aug 2008, 04:34 PM
Hello, I know there was another thread on this but I cpuldn't find it to post it there, so I apologize for starting a new one.

Whenever I use the editor with anything other than basic toolkit, I get about 1.5inches of space below where you can type in text. I tried editor.modules.clear() but it didnt seem to help me. Any help would be appreciated.


Salomon

3 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 04 Aug 2008, 08:08 AM
Hi Salomon,

Please set the editor's EnsureToolsFileLoaded method before the Modules.Clear declaration and the desired behavior will be achieved e.g.
protected void Page_Load(object sender, EventArgs e)  
{  
    RadEditor1.EnsureToolsFileLoaded();  
    RadEditor1.Modules.Clear();  

I hope this helps.

Sincerely,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
BTRDEV-01
Top achievements
Rank 1
answered on 04 Aug 2008, 03:08 PM
Thanks for the help. It did indeed work.

Is it bec. it was clearing the modules before they loaded?

Thanks,
Salomon
0
Rumen
Telerik team
answered on 05 Aug 2008, 09:54 AM
Hi Salomon,

By default, RadEditor loads its default and internal ToolsFile.xml file with defined tools and modules. In the latest version the editor we made the toolsfile.xml to be loaded on PreRender, but in the old one editor the tools and modules were loaded on Init, which is to early in the editor's life cycle. You can find more information and explanation of the introduced change you can see the following help article: Toolbar Loading Optimizations.

If you want to dynamically access, add or remove tools and modules in the new editor versions, you should call the new editor's EnsureToolsFileLoaded() method and everything should work fine, e.g.

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        RadEditor1.EnsureToolsFileLoaded();
        RadEditor1.Modules.Remove("RadEditorNodeInspector");
        RadEditor1.Modules.Remove("RadEditorDomInspector");
    }


Best regards,
Rumen
the Telerik team

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