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

[Solved] Editor in ShowModalDialog

8 Answers 64 Views
RadEditor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikolaj Rasmussen
Top achievements
Rank 1
Nikolaj Rasmussen asked on 15 Nov 2005, 03:06 PM
Hey

If the RADEditor is shown in a form, which is opened by IE's showModalDialog it results in that the image manager doesn't work (ex. insert image does nothing).

I've been told earlier that...

     reDescription.DialogParameters.Clear();
     ParameterCollection imageArguments = new ParameterCollection();
     imageArguments.Add(new Parameter("ThumbSuffix", reDescription.ThumbSuffix));
     imageArguments.Add(new Parameter("MaxImageSize", reDescription.MaxImageSize.ToString()));
     imageArguments.Add(new Parameter("AllowThumbGeneration",   reDescription.AllowThumbGeneration.ToString()));
     reDescription.DialogParameters.Add("SharePoint/ImageManager", imageArguments);

...was necessary to get the image manager to work on a aspx-page, which works perfectly when i visit the page like normal.
But when the page is shown through a showModalDialog the imagemanager throws a javascript-exception.

8 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Nov 2005, 04:04 PM
Hi Nikolaj,

We were able to reproduce the problem on our side. This appears to be problem in r.a.d.editor which we shall try to resolve in our next release (due next month).

Till then you can try using window.open instead.

We apologize for not being able to provide an immediate solution and hope this is not a showstopper for you.

Have a nice day,
Albert
the telerik team
0
Nikolaj Rasmussen
Top achievements
Rank 1
answered on 17 Jan 2006, 08:59 AM
Hey, Albert.
I just saw that the imagemanger still doesn't work within a showModalDialog with the latest radeditor (5.6.0.0).

Any progress?
0
Atanas Korchev
Telerik team
answered on 19 Jan 2006, 03:39 PM

Hi Nikolaj,

Please excuse us for the delay. Our team is currently working on this issue and we believe that we found the problem.
You will need to edit the \RadControls\Editor\Scripts\5_6_0\RadEditor.js file (don't forget to backup first). Open it and replace

dialogArguments
with
dialogArgs

Note: If you still experience problems, please clear your browser and .Net caches and try again.

The fix will be included in the next version of the control.


Regards,
Albert
the telerik team
0
Morten Riis
Top achievements
Rank 1
answered on 23 Nov 2006, 10:11 AM
The solution I was looking for... great.

5_6_2 has the same problem. The replacing of dialogArguments did the trick.
0
bharath
Top achievements
Rank 1
answered on 02 Sep 2011, 10:57 AM
Hi Albert,

I have showmodeldailog with editor control.
but when I opened window telerik editor is disables and all the options are disabled like bold,font..etc.

please help.

Thanks in advance,
Bharath
0
Rumen
Telerik team
answered on 02 Sep 2011, 04:24 PM
Hello Bharath,

My suggestion is to execute the onParentNodeChaged method of RadEditor after opening the dialog:

function showModal() {
modalDialog.dialog('open');
var editor = $find('RadEditor1');
editor.onParentNodeChanged()
editor.set_html(editor.get_html());
}

Best wishes,
Rumen
the Telerik team
See the rest of the Telerik controls that can be integrated in SharePoint 2007/2010 on this page. To watch them in action, explore our online SharePoint 2010 and SharePoint 2007 demo sites.
0
bharath
Top achievements
Rank 1
answered on 02 Sep 2011, 04:35 PM
Hi Rumen,

Thanks for the reply.
i am using the window.ShowModeldialog popup not jquery dailog.
I have to return the ediotr value from the popup.
But Editor is diable in popup window.

please help me.

Thanks,
Bharath
0
Rumen
Telerik team
answered on 05 Sep 2011, 11:49 AM
Hello Bharath,

I am not aware of any problems related in showModalDialog dialogs.
Could you please test the latest version 2011.2.712 of RadEditor for ASP.NET AJAX in showModalDialog and if the problem still persists, open a support ticket and send a sample working project for examination.

Kind regards,
Rumen
the Telerik team
See the rest of the Telerik controls that can be integrated in SharePoint 2007/2010 on this page. To watch them in action, explore our online SharePoint 2010 and SharePoint 2007 demo sites.
Tags
RadEditor
Asked by
Nikolaj Rasmussen
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Nikolaj Rasmussen
Top achievements
Rank 1
Morten Riis
Top achievements
Rank 1
bharath
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or