﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11672	EJS templates not preserved by protectedsource	Goran		"I am using CKEditor 4.3.3 (revision 7841b02) (currently the latest revision) on my web app. I have used the protecedsource to escape EJS templates (<%= ... %>), and here is a copy of the regEx used: 
{{{
protectedSource: [/<%[\s\S]*?%>/g, /&nbsp;/g]
}}}
The problem appears when switching between source and wysiwyg editor. When the html code in source editor is in this format: 
{{{
<div style=""color: #aaaaaa;"">
  <a href=""<%= link(1) %>"">Test link</a>
</div>
}}}
it all works normally. However, when html is in this format:
{{{
<div style=""color: 
  #aaaaaa;""><a href=""<%= link(1) %>"">Test link</a>
</div>
}}}
after switching to wysiwyg and back to source, it changes to this:
{{{
<div style=""color: 
  #aaaaaa;"">
<a href=""&lt;!--{cke_protected}%3C%25%3D%20link(1)%20%25%3E--&gt;"">Test link</a>
</div>
}}}
This way all html made with EJS templates becomes broken. I am including screenshots of the issue. Is there any way that this problem could be solved?"	Bug	closed	Normal		General		duplicate		
