﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6764	Initialization 'by code' fails if script is placed after an IFrame element	Nathan Taylor		"If a page containing an element to be replaced 'by code' at page load also contains an IFrame which is declared in the markup before the initialization code, CKEditor will not initialize. If the initialization code is called before the IFrame element is declared, initialization works as expected.

Example:

{{{
<!DOCTYPE html PUBLIC ""-//W3C//DTD XHTML 1.0 Transitional//EN"" ""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"">
<html xmlns=""http://www.w3.org/1999/xhtml"">
<head>
   <title>Replace Textarea by Code - CKEditor Sample</title>
   <meta content=""text/html; charset=utf-8"" http-equiv=""content-type"" />
   <script type=""text/javascript"" src=""../ckeditor.js""></script>
</head>
<body>
   <p>
	  <textarea cols=""80"" id=""editor1"" name=""editor1"" rows=""10""></textarea>
   </p>
   <p>   
	  <iframe src=""http://www.google.com"" width=""800px"" height=""600px"" />
   </p>   
   <script type=""text/javascript"">
	  CKEDITOR.replace( 'editor1' );
   </script>   
</body>
</html>
}}}

This issue only applies to 'by code' initialization; 'by classname' initialization is not affected.

I have tested and reproduced this bug in FireFox, Internet Explorer, Opera and Chrome."	Bug	closed	Normal		General	3.4.2	invalid	iframe, initialization	
