In my dialog I need to hide and unhide elements when a given element is changed by the user
After consulting the documentation I tried this (with a few options):
Uncommenting each of the first three has no effect.
The fourth throws an error which suggests that the style element 'color' does exist/
Also tried addStyle(s) which also throws an error.
Is this possible? If so any suggestions please.
Thx. Paul
After consulting the documentation I tried this (with a few options):
onChange : function( element ) {
dialog=this.getDialog();
//dialog.getContentElement('info','myelement').hide();
//dialog.getContentElement('info','myelement').style='color:red';
//dialog.getContentElement('info','myelement').setStyle('color','red');
//dialog.getContentElement('info','arg'+(i+1)).style.color='red';
Uncommenting each of the first three has no effect.
The fourth throws an error which suggests that the style element 'color' does exist/
Also tried addStyle(s) which also throws an error.
Is this possible? If so any suggestions please.
Thx. Paul

Re: Dynamically changing the style of a dialog element
dialogDefinition.onShow = function () { var dialog = CKEDITOR.dialog.getCurrent(); dialog.hidePage( 'target' ); dialog.hidePage( 'advanced' ); var elem = dialog.getContentElement('info','linkType'); // alert( elem.isVisible() ); elem.getElement().hide(); var elem = dialog.getContentElement('info','protocol'); elem.disable(); };http://www.gute-mathe-fragen.de/