| | 328 | // #4945: Paste: Outline Numbered list do not copy correctly v2 |
| | 329 | if ( attributes ) |
| | 330 | { |
| | 331 | attributes.style = CKEDITOR.plugins.pastefromword.filters.stylesFilter( |
| | 332 | [ |
| | 333 | // Resolve indent level from 'tab-stops' value. |
| | 334 | [ ( /^tab-stops$/ ), null, function( margin ) |
| | 335 | { |
| | 336 | // Be able to deal with component/short-hand form style. |
| | 337 | var values = margin.split( ' ' ); |
| | 338 | margin = values[ 3 ] || values[ 1 ] || values [ 0 ]; |
| | 339 | margin = parseInt( margin, 10 ); |
| | 340 | |
| | 341 | // Figure out the indent unit by looking at the first increament. |
| | 342 | if ( !listBaseIndent && previousListItemMargin && margin > previousListItemMargin ) |
| | 343 | listBaseIndent = margin - previousListItemMargin; |
| | 344 | |
| | 345 | attributes[ 'cke:margin' ] = previousListItemMargin = margin; |
| | 346 | } ] |
| | 347 | ] )( attributes.style, element ) || '' ; |
| | 348 | } |
| | 349 | |