Hello,
I managed to trigger a function when a user changes a page (ie: tab) in a dialog of a plugin that I wrote, here it is:
It works and I can see the alert, but the [return false;] part, doesn't work.
The tabs in my plugin are dependent on each other and I need to prevent the tab change if user forgets to fill out info in one tab, before moving on to the next tab.
Do you have any idea how to prevent the change of the tab?
Thanks!
I managed to trigger a function when a user changes a page (ie: tab) in a dialog of a plugin that I wrote, here it is:
onLoad: function() {
theDialog = this;
// Act on tab switching
theDialog.on('selectPage', function (object) {
alert('page changed!');
return false;
});
}
It works and I can see the alert, but the [return false;] part, doesn't work.
The tabs in my plugin are dependent on each other and I need to prevent the tab change if user forgets to fill out info in one tab, before moving on to the next tab.
Do you have any idea how to prevent the change of the tab?
Thanks!

Re: return false on page change
http://docs.cksource.com/ckeditor_api/s ... tInfo.html
Re: return false on page change
name value :selectPage sender value :[object Object] editor value :undefined data value :[object Object] listenerData value :undefined stop value :function (){d=true;} cancel value :function (){f=true;} removeListener value :function (){l.removeListener(d,e);}Re: return false on page change