Hi,
I want to set the "Upload" tab as selected by default when opening the Image dialog, so I was trying to do this:
CKEDITOR.on('dialogDefinition', function(ev) { // Take the dialog name and its definition from the event data var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if (dialogName == 'image') { dialogDefinition.onShow = function () { this.selectedPage('Upload'); }; } });
Re: Calling any even on the image dialog gives me a JS error
Re: Calling any even on the image dialog gives me a JS error
This is a recommended solution to this: http://docs.cksource.com/CKEditor_3.x/H ... Dialog_Tab
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!