public/ckeditor/_source/plugins/pastefromword/filter/default.js
function postProcessList( list )
	{
		var children = list.children,
			child,
			attrs,
			count = list.children.length,
			match,
			mergeStyle,
			styleTypeRegexp = /list-style-type:(.*?)(?:;|$)/,
			stylesFilter = CKEDITOR.plugins.pastefromword.filters.stylesFilter;

		attrs = list.attributes;
		if ( styleTypeRegexp.exec( attrs.style ) )
			return;

		for ( var i = 0; i < count; i++ )
		{
			child = children[ i ];

			if ( child.attributes.value && Number( child.attributes.value ) == i + 1 )
				delete child.attributes.value;

			match = styleTypeRegexp.exec( child.attributes.style );

			if ( match )
			{
				if ( match[ 1 ] == mergeStyle || !mergeStyle )
					mergeStyle = match[ 1 ];
				else
				{
					mergeStyle = null;
					break;
				}
			}
		}

		if ( mergeStyle )
		{
			for ( i = 0; i < count; i++ )
			{
				attrs = children[ i ].attributes;
				attrs.style && ( attrs.style = stylesFilter( [ [ 'list-style-type'] ] )( attrs.style ) || '' );
			}

			list.addStyle( 'list-style-type', mergeStyle );
		}
	}
function postProcessList( list )
	{
		var children = list.children,
			child,
			attrs,
			count = list.children.length,
			match,
			mergeStyle,
			styleTypeRegexp = /list-style-type:(.*?)(?:;|$)/,
			stylesFilter = CKEDITOR.plugins.pastefromword.filters.stylesFilter;

		attrs = list.attributes;
		if ( styleTypeRegexp.exec( attrs.style ) )
			return;

		for ( var i = 0; i < count; i++ )
		{
			child = children[ i ];

			if ( child.attributes.value && Number( child.attributes.value ) == i + 1 )
				delete child.attributes.value;

			match = styleTypeRegexp.exec( child.attributes.style );

			if ( match )
			{
				if ( match[ 1 ] == mergeStyle || !mergeStyle )
					mergeStyle = match[ 1 ];
				else
				{
					mergeStyle = null;
					break;
				}
			}
		}

		if ( mergeStyle )
		{
			for ( i = 0; i < count; i++ )
			{
				attrs = children[ i ].attributes;
				attrs.style && ( attrs.style = stylesFilter( [ [ 'list-style-type'] ] )( attrs.style ) || '' );
			}

			list.addStyle( 'list-style-type', mergeStyle );
		}
	}
function postProcessList ( list ) { var children = list . children , child , attrs , count = list . children . length , match , mergeStyle , styleTypeRegexp = / list-style-type:(.*?)(?:;|$) / , stylesFilter = CKEDITOR . plugins . pastefromword . filters . stylesFilter ; attrs = list . attributes ; if ( styleTypeRegexp . exec ( attrs . style ) ) return ; for ( var i = 0 ; i < count ; i ++ ) { child = children [ i ] ; if ( child . attributes . value && Number ( child . attributes . value ) == i + 1 ) delete child . attributes . value ; match = styleTypeRegexp . exec ( child . attributes . style ) ; if ( match ) { if ( match [ 1 ] == mergeStyle || ! mergeStyle ) mergeStyle = match [ 1 ] ; else { mergeStyle = null ; break ; } } } if ( mergeStyle ) { for ( i = 0 ; i < count ; i ++ ) { attrs = children [ i ] . attributes ; attrs . style && ( attrs . style = stylesFilter ( [ [ 'list-style-type' ] ] ) ( attrs . style ) || '' ) ; } list . addStyle ( 'list-style-type' , mergeStyle ) ; } }
1. move consistent list item styles up to list root. 2. clear out unnecessary list item numbering.
1 . move consistent list item styles up to list root . 2 . clear out unnecessary list item numbering .