﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9995	should not change html inside textarea	yiminghe	Piotrek Koszuliński	"steps:

1. open editor and switch to source mode, input the following code:
    
    <textarea><img src='xx.png' /></textarea> 

2. switch to wysiwyg mode and then switch to source mode again

expected:
  editor code is  

  <p><textarea>&lt;img src=&#39;xx.png&#39; /&gt;</textarea></p>

actual:
  editor code is 

  <p><textarea>&lt;img  data-cke-saved-src=&#39;xx.png&#39; src=&#39;xx.png&#39; /&gt;</textarea></p>


PS:

 I know it is better to write escaped html inside textarea, but it is easier for user to write raw html inside textarea and browser does not complain either.

PS2:

 In htmldataprocessor it is better to add textarea into protectElementsRegex and put protectElements on the top of the toHtml function, but then ckeditor's htmlparser will fail to parse '''<textarea><img /></textare>''', so i think it needs a change to the htmlparser of ckeditor: allow any content inside tag textarea except '''</textarea>'''
 
 


"	Bug	closed	Normal	CKEditor 4.1.1	Core : Parser	3.0	fixed	HasPatch	
