Lines Matching refs:if
27 if ( aMatch ) {
28 if ( aMatch[ 2 ] == '%' ) // % is allowed - > unlock ratio.
33 // Only if ratio is locked
34 if ( dialog.lockRatio ) {
36 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
37 if ( this.id == 'txtHeight' ) {
38 if ( value && value != '0' )
40 if ( !isNaN( value ) )
44 if ( value && value != '0' )
46 if ( !isNaN( value ) )
56 if ( !dialog.originalElement || !dialog.preview )
73 if ( widget.commit && widget.id != 'txtdlgGenStyle' )
84 if ( incommit )
94 if(ckgeditImageReselectObj['align']) {
114 if(ckgeditImageReselectObj['link']) {
137 if ( element ) {
155 if ( !dialog.getContentElement( 'info', 'ratioLock' ) )
161 if ( !oImageOriginal )
165 if ( value == 'check' ) {
166 if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
173 if ( !width && !height )
175 else if ( !isNaN( originalRatio ) && !isNaN( thisRatio ) ) {
176 if ( Math.round( originalRatio ) == Math.round( thisRatio ) )
180 } else if ( value != undefined )
188 if ( dialog.lockRatio )
196 if ( CKEDITOR.env.hc ) {
206 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) {
216 if ( type != IMAGE )
220 if ( aMatch ) {
221 if ( aMatch[ 2 ] == '%' ) // % is allowed.
235 if ( size )
256 if ( !this.dontResetSize )
259 if ( this.firstLoad )
278 if ( this.preview )
317 if(element && element['$']) {
334 if ( link ) {
340 if ( linkChildren.count() == 1 ) // 1 child.
343 if ( childTagName == 'img' || childTagName == 'input' ) {
345 if ( this.imageElement.getName() == 'img' )
347 else if ( this.imageElement.getName() == 'input' )
352 if ( dialogType == 'image' )
356 if(linkType) {
362 if(link) {
363 if(link['$']['outerHTML'].match(/detail/)) {
370 …if ( element && element.getName() == 'img' && !element.data( 'cke-realelement' ) || element && ele…
375 if ( this.imageEditMode ) {
377 // temporary changes to be committed, e.g. if the dialog is canceled.
389 // Dont show preview if no URL given.
390 if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) ) {
397 if ( this.imageEditMode ) {
400 … if ( dialogType == 'image' && imgTagName == 'input' && confirm( editor.lang.image.button2Img ) ) {
408 …else if ( dialogType != 'image' && imgTagName == 'img' && confirm( editor.lang.image.img2Button ) …
425 if ( dialogType == 'image' )
437 if(link_sel.selectedIndex > 0) {
442 if ( !this.linkEditMode )
449 if(align_sel.selectedIndex > 0) {
456 if ( !this.imageElement.getAttribute( 'style' ) )
460 if ( !this.imageEditMode ) {
461 if ( this.addLink ) {
463 if ( !this.linkEditMode ) {
473 if ( !this.linkEditMode && this.addLink ) {
478 else if ( this.linkEditMode && !this.addLink ) {
485 if ( dialogType != 'image' )
489 if ( this.getContentElement( 'info', 'ratioLock' ) ) {
499 if ( this.preview )
502 if ( this.originalElement ) {
537 if ( newUrl.length > 0 ) //Prevent from load before onShow
547 if ( loader )
560 // Dont show preview if no URL given.
561 else if ( dialog.preview ) {
567 if ( type == IMAGE ) {
579 if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) {
582 } else if ( type == CLEANUP ) {
615 if ( type == IMAGE )
619 if ( type == IMAGE ) {
620 if ( this.getValue() || this.isChanged() )
622 } else if ( type == PREVIEW ) {
624 } else if ( type == CLEANUP ) {
656 if ( !isValid )
663 if ( type == IMAGE ) {
664 if ( value )
670 } else if ( type == PREVIEW ) {
672 if ( !aMatch ) {
674 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
678 } else if ( type == CLEANUP ) {
696 if ( !isValid )
703 if ( type == IMAGE ) {
704 if ( value )
710 } else if ( type == PREVIEW ) {
712 if ( !aMatch ) {
714 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' )
718 } else if ( type == CLEANUP ) {
734 if ( resetButton ) {
747 if ( ratioButton ) {
753 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' && width ) {
755 if ( !isNaN( height ) ) {
815 if ( type == IMAGE ) {
826 if ( type == IMAGE || type == PREVIEW ) {
827 if ( !isNaN( value ) ) {
830 } else if ( !value && this.isChanged() )
833 if ( !internalCommit && type == IMAGE )
835 } else if ( type == CLEANUP ) {
859 if ( type == IMAGE ) {
877 if ( type == IMAGE || type == PREVIEW ) {
878 if ( !isNaN( value ) ) {
881 } else if ( !value && this.isChanged() ) {
886 if ( !internalCommit && type == IMAGE )
888 } else if ( type == CLEANUP ) {
910 if ( type == IMAGE ) {
927 if ( type == IMAGE || type == PREVIEW ) {
928 if ( !isNaN( value ) ) {
931 } else if ( !value && this.isChanged() ) {
936 if ( !internalCommit && type == IMAGE )
938 } else if ( type == CLEANUP ) {
967 if ( type == IMAGE || type == PREVIEW ) {
968 …if ( value ) { …
985 if ( !internalCommit && type == IMAGE ) {
988 // we should remove it only if it matches "left" or "right",
995 } else if ( type == CLEANUP )
1042 if ( type == LINK ) {
1044 if ( !href )
1047 if(matches) {
1055 if ( type == LINK ) {
1056 if ( this.getValue() || this.isChanged() ) {
1061 if ( this.getValue() || !editor.config.image_removeLinkByEmptyURL )
1094 if ( type == LINK )
1098 if ( type == LINK ) {
1099 if ( this.getValue() || this.isChanged() )
1143 if ( type == IMAGE )
1147 if ( type == IMAGE ) {
1148 if ( this.getValue() || this.isChanged() )
1166 if ( type == IMAGE )
1170 if ( type == IMAGE ) {
1171 if ( this.getValue() || this.isChanged() )
1183 if ( type == IMAGE )
1187 if ( type == IMAGE ) {
1188 if ( this.getValue() || this.isChanged() )
1201 if ( type == IMAGE )
1205 if ( type == IMAGE ) {
1206 if ( this.getValue() || this.isChanged() )
1222 if ( type == IMAGE )
1226 if ( type == IMAGE ) {
1227 if ( this.getValue() || this.isChanged() )
1242 if ( type == IMAGE )
1246 if ( type == IMAGE ) {
1247 if ( this.getValue() || this.isChanged() )
1249 } else if ( type == PREVIEW ) {
1251 } else if ( type == CLEANUP ) {
1266 if ( type == IMAGE ) {
1268 if ( !genStyle && element.$.style.cssText )
1291 if ( type == IMAGE && ( this.getValue() || this.isChanged() ) ) {