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

Resizing the Paste as Plain Text dialog

1 Answer 37 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Dan Suceava
Top achievements
Rank 1
Dan Suceava asked on 04 Dec 2008, 05:34 PM
Is there a way to resize the dialog that pops up when doing Paste as Plain Text?  We use the Editor inside an iFrame of set size, and when the Paste dialog pops up it's both too big and not centered vertically. 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Dec 2008, 03:58 PM
Hi Dan,

You can resize the Paste As Plain Text dialog using the following code:

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        this.Page.PreRenderComplete += new EventHandler(Page_PreRenderComplete);
    }
    void Page_PreRenderComplete(object sender, EventArgs e)
    {
        Telerik.Web.UI.DialogDefinition linkManager = RadEditor1.GetDialogDefinition("CleanPasteTextContent");
        linkManager.Height = Unit.Pixel(600);
        linkManager.Width = Unit.Pixel(700);
    }

You can find more information here.

Another way to fix the problem is to use the modal browser dialogs as it is described in this KB article: Using browser modal dialog instead of RadWindow.

Kind regards,
Rumen
the Telerik team

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