Hi, I'm using the CKEditor ASP.NET server control in my ASP.NET webforms application and for the most part everything works great. Except that whenever a modal dialog is opened, like for inserting a hyperlink, or pasting from word, etc, it doesn't close correctly. If I click OK or Cancel, the dialog goes away but the page stays in a 'modal' state with everything being grayed out and in-active. It's as if the mask is not going away along with the dialog.
I can't find any js errors occuring via Firebug and just can't seem to figure out what's wrong. Has anyone seen this behavior before? Below are some specific details of how I'm using it.
Thanks in advance for any insight/help anyone can give me.
-Scott LeWarne
scottlewarne@gmail.com
I am using the following .dll for this control: FredCK.CKEditor.dll, version: 3.5.2.30873
Here is a snippet of the properties I'm assigning. I am using the control exactly like this on several pages within the site and all exhibit the same behavior:
<FredCK:CKEditor runat="server" ID="txtQuestion"
Width="600"
height="250"
Toolbar="DistrictStandard"
EnterMode="BR"></FredCK:CKEditor>
My config.js file is pretty simple and looks like this:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbar_DistrictStandard =
[
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'Indent', 'Outdent', '-', 'BulletedList', 'NumberedList', '-', '-', 'Link', 'Unlink', ],
['TextColor', 'BGColor', 'Font', 'FontSize'],
['Source']
];
};
I can't find any js errors occuring via Firebug and just can't seem to figure out what's wrong. Has anyone seen this behavior before? Below are some specific details of how I'm using it.
Thanks in advance for any insight/help anyone can give me.
-Scott LeWarne
scottlewarne@gmail.com
I am using the following .dll for this control: FredCK.CKEditor.dll, version: 3.5.2.30873
Here is a snippet of the properties I'm assigning. I am using the control exactly like this on several pages within the site and all exhibit the same behavior:
<FredCK:CKEditor runat="server" ID="txtQuestion"
Width="600"
height="250"
Toolbar="DistrictStandard"
EnterMode="BR"></FredCK:CKEditor>
My config.js file is pretty simple and looks like this:
CKEDITOR.editorConfig = function( config )
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.toolbar_DistrictStandard =
[
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', '-', 'Indent', 'Outdent', '-', 'BulletedList', 'NumberedList', '-', '-', 'Link', 'Unlink', ],
['TextColor', 'BGColor', 'Font', 'FontSize'],
['Source']
];
};
Re: Problem with CKEditor ASP.NET server control - modal dia
I too, am having this exact issue. Running Classic ASP.
Below is config.js files contents:
I have this same setup on another server that works fine (slight template changes, so cut and paste will not work to rebuild)
Re: Problem with CKEditor ASP.NET server control - modal dia
I don't know if this will help you, Scott.
I decided to vie wthe source of the frozen page, and I noticed that my code and end tags for the </BODY> and </HTML> were not displaying.
So I checked my code and found that I didn't put the JS files into the <head>, and I didn't have any <body></body> & <html></html> tags in my template files.
When I straightened that out, it worked. So maybe the postback needs to see the closing tags of the page......?
Re: Problem with CKEditor ASP.NET server control - modal dia
Re: Problem with CKEditor ASP.NET server control - modal dia
I've proposed a patch in http://dev.ckeditor.com/ticket/7588
Please, notice that this happens if you add the ckeditor.js file twice, so correcting that issue you can get a fix right now.
Re: Problem with CKEditor ASP.NET server control - modal dia