my simpleLink plug-in dialog window has two tabs.
I'm trying to achieve the following:
if
text not selected, show errorTab
else
show linkTab
here is the code:
if I press the link button for the first time, both tabs appear.
it only beginns two work correctly from the second click on.
do you have any solution to my problem?
thank you
I'm trying to achieve the following:
if
text not selected, show errorTab
else
show linkTab
here is the code:
onShow : function() { var selection = editor.getSelection(), textSelektiert = selection.getNative(); if(textSelektiert !="") this.showPage('linkTab'), this.hidePage('errorTab'); else this.hidePage('linkTab'), this.showPage('errorTab'); },
if I press the link button for the first time, both tabs appear.
it only beginns two work correctly from the second click on.
do you have any solution to my problem?
thank you