﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8341	Faulty removal of empty spans in paste from word cleaning	Tomas		"In the paste from word plugin, there is a regexp replace of ""<span>"" for removing empty spans. The intention is right, but it is done without respect to the end tag. Thus ending up in a faulty DOM and destroying formatting of doc.

e.g. <p>normal <span style=""my style""> text <span>with</span> my style.</span></p>
Will cause styling to end after ""with"" instead of at ""style.""

This can in fact not be cleaned in regexp, it has to be done in the DOM.

The error is at line 1131 in _source\plugins\pastefromword\filter\default.js

The faulty code:
// Remove the dummy spans ( having no inline style ).
data = data.replace( /<span>/g, '' );

Looked back to version 3.4 its at least that old."	Bug	closed	Normal	CKEditor 4.6.0	Plugin : Paste from Word		fixed		
