Permalink
Browse files

Fixed heuristics for IE8, use CKEDITOR.tools.array pollyfills.

  • Loading branch information...
1 parent acde125 commit 324ced48d6b3b656773c1bc7de86a141bcb2fefc @mlewand mlewand committed Jan 11, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/pastefromword/filter/default.js
@@ -1699,14 +1699,14 @@
} );
// Level can not be equal to 0, in case if it happens bump all the levels by 1,
- if ( levels.indexOf( 0 ) !== -1 ) {
+ if ( array.indexOf( levels, 0 ) !== -1 ) {
levels = map( levels, function( val ) {
return val + 1;
} );
}
// Assign levels to a proper place.
- items.forEach( function( curItem, index ) {
+ array.forEach( items, function( curItem, index ) {
curItem.attributes[ 'cke-list-level' ] = levels[ index ];
} );

0 comments on commit 324ced4

Please sign in to comment.