|
609 | 609 | return isValid;
|
610 | 610 | },
|
611 | 611 | setup: setupDimension,
|
612 |
| - commit: function( type, element, internalCommit ) { |
| 612 | + commit: function( type, element ) { |
613 | 613 | var value = this.getValue();
|
614 | 614 | if ( type == IMAGE ) {
|
615 | 615 | if ( value && editor.activeFilter.check( 'img{width,height}' ) )
|
616 | 616 | element.setStyle( 'width', CKEDITOR.tools.cssLength( value ) );
|
617 | 617 | else
|
618 | 618 | element.removeStyle( 'width' );
|
619 | 619 |
|
620 |
| - !internalCommit && element.removeAttribute( 'width' ); |
| 620 | + element.removeAttribute( 'width' ); |
621 | 621 | } else if ( type == PREVIEW ) {
|
622 | 622 | var aMatch = value.match( regexGetSize );
|
623 | 623 | if ( !aMatch ) {
|
|
650 | 650 | return isValid;
|
651 | 651 | },
|
652 | 652 | setup: setupDimension,
|
653 |
| - commit: function( type, element, internalCommit ) { |
| 653 | + commit: function( type, element ) { |
654 | 654 | var value = this.getValue();
|
655 | 655 | if ( type == IMAGE ) {
|
656 | 656 | if ( value && editor.activeFilter.check( 'img{width,height}' ) )
|
657 | 657 | element.setStyle( 'height', CKEDITOR.tools.cssLength( value ) );
|
658 | 658 | else
|
659 | 659 | element.removeStyle( 'height' );
|
660 | 660 |
|
661 |
| - !internalCommit && element.removeAttribute( 'height' ); |
| 661 | + element.removeAttribute( 'height' ); |
662 | 662 | } else if ( type == PREVIEW ) {
|
663 | 663 | var aMatch = value.match( regexGetSize );
|
664 | 664 | if ( !aMatch ) {
|
|
755 | 755 | this.setValue( value );
|
756 | 756 | }
|
757 | 757 | },
|
758 |
| - commit: function( type, element, internalCommit ) { |
| 758 | + commit: function( type, element ) { |
759 | 759 | var value = parseInt( this.getValue(), 10 );
|
760 | 760 | if ( type == IMAGE || type == PREVIEW ) {
|
761 | 761 | if ( !isNaN( value ) ) {
|
|
765 | 765 | element.removeStyle( 'border' );
|
766 | 766 | }
|
767 | 767 |
|
768 |
| - if ( !internalCommit && type == IMAGE ) |
| 768 | + if ( type == IMAGE ) |
769 | 769 | element.removeAttribute( 'border' );
|
770 | 770 | } else if ( type == CLEANUP ) {
|
771 | 771 | element.removeAttribute( 'border' );
|
|
806 | 806 | this.setValue( value );
|
807 | 807 | }
|
808 | 808 | },
|
809 |
| - commit: function( type, element, internalCommit ) { |
| 809 | + commit: function( type, element ) { |
810 | 810 | var value = parseInt( this.getValue(), 10 );
|
811 | 811 | if ( type == IMAGE || type == PREVIEW ) {
|
812 | 812 | if ( !isNaN( value ) ) {
|
|
817 | 817 | element.removeStyle( 'margin-right' );
|
818 | 818 | }
|
819 | 819 |
|
820 |
| - if ( !internalCommit && type == IMAGE ) |
| 820 | + if ( type == IMAGE ) |
821 | 821 | element.removeAttribute( 'hspace' );
|
822 | 822 | } else if ( type == CLEANUP ) {
|
823 | 823 | element.removeAttribute( 'hspace' );
|
|
856 | 856 | this.setValue( value );
|
857 | 857 | }
|
858 | 858 | },
|
859 |
| - commit: function( type, element, internalCommit ) { |
| 859 | + commit: function( type, element ) { |
860 | 860 | var value = parseInt( this.getValue(), 10 );
|
861 | 861 | if ( type == IMAGE || type == PREVIEW ) {
|
862 | 862 | if ( !isNaN( value ) ) {
|
|
867 | 867 | element.removeStyle( 'margin-bottom' );
|
868 | 868 | }
|
869 | 869 |
|
870 |
| - if ( !internalCommit && type == IMAGE ) |
| 870 | + if ( type == IMAGE ) |
871 | 871 | element.removeAttribute( 'vspace' );
|
872 | 872 | } else if ( type == CLEANUP ) {
|
873 | 873 | element.removeAttribute( 'vspace' );
|
|
916 | 916 | this.setValue( value );
|
917 | 917 | }
|
918 | 918 | },
|
919 |
| - commit: function( type, element, internalCommit ) { |
| 919 | + commit: function( type, element ) { |
920 | 920 | var value = this.getValue();
|
921 | 921 | if ( type == IMAGE || type == PREVIEW ) {
|
922 | 922 | if ( value )
|
923 | 923 | element.setStyle( 'float', value );
|
924 | 924 | else
|
925 | 925 | element.removeStyle( 'float' );
|
926 | 926 |
|
927 |
| - if ( !internalCommit && type == IMAGE ) { |
| 927 | + if ( type == IMAGE ) { |
928 | 928 | value = ( element.getAttribute( 'align' ) || '' ).toLowerCase();
|
929 | 929 | switch ( value ) {
|
930 | 930 | // we should remove it only if it matches "left" or "right",
|
|
0 commit comments