Log in or register to post comments
zottto's picture
Joined: 09/03/2010
Posts: 2
How to add an additional tab(page) to an registered dialog?
Hi!

I'm trying to write a plugin, that adds an additional tab (page) to the image dialog. I don't want to change the dialog's source itself, but enhance it with the plugin.

I searched the docs and the forum for quite some time now, and I now know that I can call "addPage" on the dialogs object to add another tab. I also understand how the contents object must look like.
But I failed in finding the way how to get the dialog object of an already existing dialog.

I tried a
var ImageDialog = new CKEDITOR.dialog( editor, 'image' );

within the plugin's init method, but that caused an JS error "R is not a function"...

Can somebody help me out here, please?

Thanks in advance,
Marc