I am a bit hesitant to file this as a bug, as that part of the system is very little documented and I don't know whether I'm doing it right.
I'm inside a Iframe dialog.
I am connecting to the parent CKEDitor instance like so:
I am fetching the current dialog like so:
I then disable one of the buttons like so:
This will have the following effects:
1. The button will get the "disabled" class. I can verify this in firebug.
2. The button will not react to calling its .click() method any more.
However, the buttonremains clickable by mouse, executing the "close dialog" command connected to it.
Why?
Is there any way to make the dialog buttons unclickable?
Is this a bug?
If it is, let me know and I'll file it.
I'm inside a Iframe dialog.
I am connecting to the parent CKEDitor instance like so:
var CKEDITOR = window.parent.CKEDITOR;
I am fetching the current dialog like so:
dialog = CKEDITOR.dialog.getCurrent();
I then disable one of the buttons like so:
dialog.disableButton("ok");
dialog.disableButton("cancel"); This will have the following effects:
1. The button will get the "disabled" class. I can verify this in firebug.
2. The button will not react to calling its .click() method any more.
However, the buttonremains clickable by mouse, executing the "close dialog" command connected to it.
Why?
Is there any way to make the dialog buttons unclickable?
Is this a bug?
If it is, let me know and I'll file it.

Re: IFrame Dialog: Disabling ok and false buttons doesn't work
I guess that you can understand that in order to reproduce your problem it's easier to reuse your code instead of trying to create it on our own based on your description.
Does it happen only in an iframe dialog or in any dialog?
Re: IFrame Dialog: Disabling ok and false buttons doesn't work
I am trying to disable the 'ok' button from within the onShow method of the dialog definition.
If you test like below, you will find that although 'disabled' gets appended to the button's class, the button itself remains clickable by the mouse.
CKEDITOR.dialog.add('bytestextfield', function(editor){ . . . return { . . . onShow: function(){ this.disableButton('ok'); . . .Re: IFrame Dialog: Disabling ok and false buttons doesn't work
Where did you put the code to
Where did you put the code to hide the button at exactly? I've been having this problem for quite some time also.
Nice Move
Sometimes we just gotta work your way out. Codings just full of crap sometimes but when you get things going it's all good. Thanks for the information by the way.