Ticket #5152: 5152.patch

File 5152.patch, 1.2 KB (added by Alfonso Martínez de Lizarrondo, 14 years ago)

Proposed patch

  • _source/plugins/indent/plugin.js

     
    225225                                if ( indentStep < 1 )
    226226                                        block.$.className = className;
    227227                                else
    228                                         block.addClass( editor.config.indentClasses[ indentStep - 1 ] );
     228                                        block.$.className = CKEDITOR.tools.ltrim( className + ' ' + editor.config.indentClasses[ indentStep - 1 ] );
    229229                        }
    230230                        else
    231231                        {
     
    321321                indentUnit : 'px',
    322322                indentClasses : null
    323323        });
     324
     325/**
     326 * Size of each indentation step
     327 * @type Number
     328 * @example
     329 * config.indentOffset = 40;
     330 */
     331
     332 /**
     333 * Unit for the indentation style
     334 * @type String
     335 * @example
     336 * config.indentUnit = 'px';
     337 */
     338
     339 /**
     340 * List of classes to use for indenting the contents.
     341 * @type Array
     342 * @example
     343 * // Don't use classes for indenting. (this is the default value)
     344 * config.indentClasses = null;
     345 * @example
     346 * // Use the classes 'Indent1', 'Indent2', 'Indent3'
     347 * config.indentClasses = ['Indent1', 'Indent2', 'Indent3'];
     348 */
     349 No newline at end of file
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy