Lines Matching refs:if
28 if ( aMatch ) {
29 if ( aMatch[ 2 ] == '%' ) // % is allowed - > unlock ratio.
34 // Only if ratio is locked
35 if ( dialog.lockRatio ) {
37 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
38 if ( this.id == 'txtHeight' ) {
39 if ( value && value != '0' )
41 if ( !isNaN( value ) )
45 if ( value && value != '0' )
47 if ( !isNaN( value ) )
57 if ( !dialog.originalElement || !dialog.preview )
74 if ( widget.commit && widget.id != 'txtdlgGenStyle' )
85 if ( incommit )
95 if(ckgeditImageReselectObj['align']) {
115 if(ckgeditImageReselectObj['link']) {
138 if ( element ) {
156 if ( !dialog.getContentElement( 'info', 'ratioLock' ) )
162 if ( !oImageOriginal )
166 if ( value == 'check' ) {
167 if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
174 if ( !width && !height )
176 else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) ) {
177 if ( Math.round( originalRatio ) == Math.round( thisRatio ) )
181 } else if ( value != undefined )
189 if ( dialog.lockRatio )
197 if ( CKEDITOR.env.hc ) {
207 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
217 if ( type != IMAGE )
221 if ( aMatch ) {
222 if ( aMatch[ 2 ] == '%' ) // % is allowed.
236 if ( size )
257 if ( !this.dontResetSize )
260 if ( this.firstLoad )
279 if ( this.preview )
318 if(element && element['$']) {
335 if ( link ) {
341 if ( linkChildren.count() == 1 ) // 1 child.
344 if ( childTagName == 'img' || childTagName == 'input' ) {
346 if ( this.imageElement.getName() == 'img' )
348 else if ( this.imageElement.getName() == 'input' )
353 if ( dialogType == 'image' )
357 if(linkType) {
363 if(link) {
364 if(link['$']['outerHTML'].match(/detail/)) {
371 …if ( element && element.getName() == 'img' && !element.data( 'cke-realelement' ) || element && ele…
376 if ( this.imageEditMode ) {
378 // temporary changes to be committed, e.g. if the dialog is canceled.
390 // Dont show preview if no URL given.
391 if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) ) {
398 if ( this.imageEditMode ) {
401 … if ( dialogType == 'image' && imgTagName == 'input' && confirm( editor.lang.image.button2Img ) ) {
409 …else if ( dialogType != 'image' && imgTagName == 'img' && confirm( editor.lang.image.img2Button ) …
426 if ( dialogType == 'image' )
438 if(link_sel.selectedIndex > 0) {
443 if ( !this.linkEditMode )
450 if(align_sel.selectedIndex > 0) {
457 if ( !this.imageElement.getAttribute( 'style' ) )
461 if ( !this.imageEditMode ) {
462 if ( this.addLink ) {
464 if ( !this.linkEditMode ) {
474 if ( !this.linkEditMode && this.addLink ) {
479 else if ( this.linkEditMode && !this.addLink ) {
486 if ( dialogType != 'image' )
490 if ( this.getContentElement( 'info', 'ratioLock' ) ) {
500 if ( this.preview )
503 if ( this.originalElement ) {
538 if ( newUrl.length > 0 ) //Prevent from load before onShow
548 if ( loader )
561 // Dont show preview if no URL given.
562 else if ( dialog.preview ) {
568 if ( type == IMAGE ) {
580 if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) {
583 } else if ( type == CLEANUP ) {
616 if ( type == IMAGE )
620 if ( type == IMAGE ) {
621 if ( this.getValue() || this.isChanged() )
623 } else if ( type == PREVIEW ) {
625 } else if ( type == CLEANUP ) {
657 if ( !isValid )
664 if ( type == IMAGE ) {
665 if ( value )
671 } else if ( type == PREVIEW ) {
673 if ( !aMatch ) {
675 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
679 } else if ( type == CLEANUP ) {
697 if ( !isValid )
704 if ( type == IMAGE ) {
705 if ( value )
711 } else if ( type == PREVIEW ) {
713 if ( !aMatch ) {
715 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
719 } else if ( type == CLEANUP ) {
735 if ( resetButton ) {
748 if ( ratioButton ) {
754 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' && width ) {
756 if ( !isNaN( height ) ) {
816 if ( type == IMAGE ) {
827 if ( type == IMAGE || type == PREVIEW ) {
828 if ( !isNaN( value ) ) {
831 } else if ( !value && this.isChanged() )
834 if ( !internalCommit && type == IMAGE )
836 } else if ( type == CLEANUP ) {
860 if ( type == IMAGE ) {
878 if ( type == IMAGE || type == PREVIEW ) {
879 if ( !isNaN( value ) ) {
882 } else if ( !value && this.isChanged() ) {
887 if ( !internalCommit && type == IMAGE )
889 } else if ( type == CLEANUP ) {
911 if ( type == IMAGE ) {
928 if ( type == IMAGE || type == PREVIEW ) {
929 if ( !isNaN( value ) ) {
932 } else if ( !value && this.isChanged() ) {
937 if ( !internalCommit && type == IMAGE )
939 } else if ( type == CLEANUP ) {
968 if ( type == IMAGE || type == PREVIEW ) {
969 …if ( value ) { …
986 if ( !internalCommit && type == IMAGE ) {
989 // we should remove it only if it matches "left" or "right",
996 } else if ( type == CLEANUP )
1043 if ( type == LINK ) {
1045 if ( !href )
1048 if(matches) {
1056 if ( type == LINK ) {
1057 if ( this.getValue() || this.isChanged() ) {
1062 if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL )
1095 if ( type == LINK )
1099 if ( type == LINK ) {
1100 if ( this.getValue() || this.isChanged() )
1144 if ( type == IMAGE )
1148 if ( type == IMAGE ) {
1149 if ( this.getValue() || this.isChanged() )
1167 if ( type == IMAGE )
1171 if ( type == IMAGE ) {
1172 if ( this.getValue() || this.isChanged() )
1184 if ( type == IMAGE )
1188 if ( type == IMAGE ) {
1189 if ( this.getValue() || this.isChanged() )
1202 if ( type == IMAGE )
1206 if ( type == IMAGE ) {
1207 if ( this.getValue() || this.isChanged() )
1223 if ( type == IMAGE )
1227 if ( type == IMAGE ) {
1228 if ( this.getValue() || this.isChanged() )
1243 if ( type == IMAGE )
1247 if ( type == IMAGE ) {
1248 if ( this.getValue() || this.isChanged() )
1250 } else if ( type == PREVIEW ) {
1252 } else if ( type == CLEANUP ) {
1267 if ( type == IMAGE ) {
1269 if ( !genStyle && element.$.style.cssText )
1292 if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) {