Opened 14 years ago

Closed 14 years ago

#6764 closed Bug (invalid)

Initialization 'by code' fails if script is placed after an IFrame element

Reported by: Nathan Taylor Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4.2
Keywords: iframe, initialization Cc:


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.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
   <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>
	  <textarea cols="80" id="editor1" name="editor1" rows="10"></textarea>
	  <iframe src="" width="800px" height="600px" />
   <script type="text/javascript">
	  CKEDITOR.replace( 'editor1' );

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.

Change History (1)

comment:1 Changed 14 years ago by Garry Yao

Resolution: invalid
Status: newclosed

Please check the right way of writing an iframe (no self-closing).

Please use our forums for discussions and community support.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy