Hi,
I decided to move the OK dialog button to another place. So I hide the OK button and I created a new one in the right location.
Here is my code :
Any idea of how can I simulate the click of the OK button ?
I decided to move the OK dialog button to another place. So I hide the OK button and I created a new one in the right location.
Here is my code :
...
buttons : [
CKEDITOR.dialog.okButton.override( { label : 'old OK button', style : 'display:none' } ),
CKEDITOR.dialog.cancelButton
],
....
{
type : 'button',
id : 'mybutton',
style : 'margin-left:20px; font-weight: bold',
title : 'click here',
label : 'click here',
onClick : function(event) {
// How can I simulate a click on the OK button ???
}
}
Any idea of how can I simulate the click of the OK button ?

Re: How to simulate a click on the OK button ?
I was able to get a cross browser solution working in Jquery
$('.cke_dialog_ui_button_ok').children().click()
good luck