SOLUTION UPDATE
After spending sometime searching, I think I can make a workaround of this. For me, the only feature of using a modal dialog is that it prevent access from elements behind it. I figure out that its just as same as using non-modal dialog with overlay behind it. The overlay just did the trick of being a modal dialog (altough its not fully featured modal).
So this is my solution, before I initialize the dialog, I insert a div element before it and give ui-widget-overlay class to the div. Its done using .insertBefore() method. And then, at the dialog 'close' event, I remove that overlay div. The dialog 'modal' option is set to false. By using this solution, CKEditor pop up is working fine, because there only one modal dialog (CKEditor pop up).
Here is the whole code in jsfiddle. Hope this helps.
I'm using jQuery to display a dialog. I set this dialog to modal mode. Inside that dialog I include a textarea, which then will be used with CKEditor. When I show the dialog, the textarea is converted nicely by CKEditor. But when try to include an image (CKEditor displays ITS OWN DIALOG for the input), I cannot use the URL input.
This is my code for init the dialog:
var $dialogJurnal = $("#dialog").dialog({
autoOpen: false,
height: 630,
width: 'auto',
maxHeight: 630,
resize: 'auto',
modal: true
});
With that configuration, I can't click the textbox and type.
And then I figure out, that if I set the modal to false, then it should work.
This is the code:
var $dialogJurnal = $("#dialog").dialog({
autoOpen: false,
height: 630,
width: 'auto',
maxHeight: 630,
resize: 'auto',
modal: false
});
With that code, everything is normal, I can click to textbox and type.
Because I need to enable the modal mode, then this become my problem. I think its because the z-index from jQuery dialog (or similar to that) that blocks the CKEditor input dialog. Is there any one can help me?