Changeset 5211


Ignore:
Timestamp:
03/01/10 22:21:15 (4 years ago)
Author:
alfonsoml
Message:

#5152 Fix problems of indentation with classes

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5210 r5211  
    4141        <ul> 
    4242                <li><a href="http://dev.fckeditor.net/ticket/4478">#4478</a> : Enable the SelectAll command in source mode.</li> 
     43                <li><a href="http://dev.fckeditor.net/ticket/5152">#5152</a> : Indentation using classes didn't work properly.</li> 
    4344        </ul> 
    4445        <p> 
  • CKEditor/trunk/_source/plugins/indent/plugin.js

    r5206 r5211  
    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 
     
    326326 * Size of each indentation step 
    327327 * @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 
     350/** 
     351 * Size of each indentation step 
     352 * @type Number 
    328353 * @default 40 
    329354 * @example 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy