So you can define a specified id for your tabs, lets say "tab1" and "tab2".
After hitting the OK-Button, you can check which tab is active:
var tabId = CKEDITOR.dialog.definition.dialog._.currentTabId;
if(tabId == 'tab1') {
//Get values of elements in tab1
} else {
//Get values of elements in tab2
}
HI DeNelo,
HI DeNelo,
in my plugin with two tabs and a button, i check the current selected Tab, so i know which elements i have to fetch on Buttonclick.
You can get the current selected Tab with this snippet:
So you can define a specified id for your tabs, lets say "tab1" and "tab2".
After hitting the OK-Button, you can check which tab is active:
Hope this may help you.
byebye
I have tried out the code
I have tried out the code given. It is working. Thanks.
Hi Heady86,
Hi Heady86,
Thanks for this explanation!
-Niels