Ticket #3423: 3423.patch

File 3423.patch, 868 bytes (added by Josh Nisly, 14 years ago)
  • _source/plugins/indent/plugin.js

     
    7575                }
    7676                else
    7777                {
    78                         var indent = parseInt( firstBlock.getComputedStyle( this.indentCssProperty ), 10 );
     78                        var indent = parseInt( firstBlock.getStyle( this.indentCssProperty ), 10 );
    7979                        if ( isNaN( indent ) )
    8080                                indent = 0;
    8181                        if ( indent <= 0 )
     
    195195                        }
    196196                        else
    197197                        {
    198                                 var currentOffset = parseInt( block.getComputedStyle( this.indentCssProperty ), 10 );
     198                                var currentOffset = parseInt( block.getStyle( this.indentCssProperty ), 10 );
    199199                                if ( isNaN( currentOffset ) )
    200200                                        currentOffset = 0;
    201201                                currentOffset += ( this.name == 'indent' ? 1 : -1 ) * editor.config.indentOffset;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy