EDIT....
Removal of this line fixes the problem..... however i can now no longer use the ASP buttons on the edit dialog itself.....
dialogedit.parent().appendTo(jQuery('form:first'));
Hello,
I am using CKEditor.net to put an editor on an aspx page. The editor seems to work fine, but when i open the editor and close it, the rest of my asp buttons stop working and do not send any requests to the server side. This only happens after opening the editor and closing the editor.
Register the plugin
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
Here it is initialised......
var dialogedit = $("#editdialog").removeClass("flash").dialog({
bgiframe: true,
// draggable: true,
autoOpen: false, //this for some reason causes autoclose in firefox
height: 'auto',
width: 650,
// position:[350,100],
modal: true
});
Then i have asp buttons on the page that call javascript to open and close the dialog.
function something()
{
var dialogedit = $('#editdialog').dialog('open');
dialogedit.parent().appendTo(jQuery('form:first'));
CKEDITOR.instances[$('#editorName').val()].setData(noteBody);
return false;
}
Here we call close dialog.
function CancelEdit() {
$('#editdialog').dialog('close');
return false;
}
I have tried a variation of removing the dialog before postback but it always results in the page not posting back.
Any clues as to how the editor can be messing with the .NET stuff?
Regards,
Daniel