﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12740	"Pastefromword terminates with error message if word markup contains style prop ""mso-list: none;"""	Henning	Tade0	"In CKEditor 4.3.5 and IE9 or Chrome (at least), the paste from word plugin terminates with its error message when pasting a Word content via clipboard that contains style prop ""mso-list: none;"". See attached Word file. The content then is pasted to the editor, but mostly uncleaned.
 
The style prop ""mso-list: none;"" seems to be generated by Word for the heading of the TOC (for example, in our case).
 
Analyzing the file plugins/pastefromword/filter/default.js, I found that the code expects a property value containing at least one space, and will throw an exception otherwise:

{{{
val = val.split(' ');
var listId = Number( val[ 0 ].match( /\d+/ ) ),
   indent = Number( val[ 1 ].match( /\d+/ ) );
}}}

Hence, adding the following line after the split cures the issue: 
 
{{{
if( !val || val.length < 2 ) return;
}}}

Can you please check whether this line does any other harm and, if not, add it to the code for future versions?

Moreover, it would be helpful if the paste from word filters would be more robust in the sense that an exception does not stop the filtering completely ...

Best, Henning"	Bug	closed	Normal		Plugin : Paste from Word	4.0.1	fixed		
