﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5646	CK 3.2.1 protected source problem	Larry Hinderks	Garry Yao	"The protectedsource feature seems to give strange results when the protected source is inside a span.  Below are 2 examples of problems. In the first example below, the CKEDITOR removed the span tags. In the second case, the CKEDITOR moved some of the protected text outside of the span. If you try various combinations of protected text and spans you seem to get strange results.

1. Set the config file to protect <? ... ?> things by placing the following code in the config.js file (from the ckeditor api docs).

config.protectedSource.push(/<\?[\s\S]*?\?>/g); 

2.  In the editor (3.2.1) type the following in the source mode.

<p>abc<span><?def?></span></p>

3.  Go to WYSIWYG mode and then back to source mode and you will see the following.  Notice the spans are gone. The protected source remains intact.

<p>
	abc<?def?></p>

4.  Now try typing the following in the source mode.

<p>abc def<span><?php stuff a?>ghi -- lmn<?php stuff b?></span>xyz</p>

5.  Go to WYSIWYG mode and back to source mode and notice how some of the protected text (<?php stuff a?>) is moved outside the span.

<p>
	abc def<?php stuff a?><span>ghi -- lmn<?php stuff b?></span>xyz</p>
"	Bug	closed	Normal	CKEditor 3.4.2	Core : Output Data	3.0	fixed		
