- summary: Problem in switching visibility --> Problem in switching fckeditor's visibility
Try below script and notice that you can not change visibilty to false in the zscript.
<window title="FCKeditor">
<fckeditor id="ed1"/>
<fckeditor id="ed2"/>
<button label="switch visibility 1"
onClick="ed1.visible = !ed1.visible ;"/>
<button label="switch visibility 2"
onClick="ed2.visible = !ed2.visible;"/>
<zscript>
ed1.visible = false;
ed2.visible = false;
</zscript>
</window>
same problem if you use below script:
<window title="FCKeditor">
<fckeditor id="ed1" visible="false"/>
<fckeditor id="ed2" visible="false"/>
<button label="switch visibility 1"
onClick="ed1.visible = !ed1.visible ;"/>
<button label="switch visibility 2"
onClick="ed2.visible = !ed2.visible;"/>
</window>
but no problem if you use the below script:
<window title="FCKeditor">
<fckeditor id="ed1"/>
<fckeditor id="ed2"/>
<button label="switch visibility 1"
onClick="ed1.visible = !ed1.visible ;"/>
<button label="switch visibility 2"
onClick="ed2.visible = !ed2.visible;"/>
</window>