213 | | [ |
214 | | // Text-indent is not representing list item level any more. |
215 | | [ 'text-indent' ], |
216 | | [ 'line-height' ], |
217 | | // Resolve indent level from 'margin-left' value. |
218 | | [ ( /^margin(:?-left)?$/ ), null, function( value ) |
219 | | { |
220 | | // Be able to deal with component/short-hand form style. |
221 | | var values = value.split( ' ' ); |
222 | | value = values[ 3 ] || values[ 1 ] || values [ 0 ]; |
223 | | attrs[ 'cke:indent' ] = |
224 | | // Indent margin unit by 36pt. |
225 | | Math.floor( parseInt( value, 10 ) / 36 ); |
226 | | } ] |
| 215 | [ |
| 216 | // Text-indent is not representing list item level any more. |
| 217 | [ 'text-indent' ], |
| 218 | [ 'line-height' ], |
| 219 | // Resolve indent level from 'margin-left' value. |
| 220 | [ ( /^margin(:?-left)?$/ ), null, function( value ) |
| 221 | { |
| 222 | // Be able to deal with component/short-hand form style. |
| 223 | var values = value.split( ' ' ); |
| 224 | value = values[ 3 ] || values[ 1 ] || values [ 0 ]; |
| 225 | value = parseInt( value, 10 ); |
| 226 | |
| 227 | // Figure out the indent unit by looking at the first list item. |
| 228 | !listBaseIndent && ( listBaseIndent = value ); |
| 229 | |
| 230 | // Indent level start with one. |
| 231 | attrs[ 'cke:indent' ] = Math.floor( value / listBaseIndent ) + 1; |
| 232 | } ] |