#3368: Strange behavior when placed inside dynamically-created elements
----------------------+-----------------------------------------------------
 Reporter:  pferreir  |       Owner:                
     Type:  Bug       |      Status:  new           
 Priority:  Normal    |   Milestone:  CKEditor 3.0  
Component:  General   |     Version:  SVN (CKEditor)
 Keywords:  Pending   |  
----------------------+-----------------------------------------------------
Changes (by arczi):

  * keywords:  => Pending


Comment:

 Could you try the "3368.html" example?

 I have moved only one line:

 {{{
 document.getElementById('tests').appendChild(div2);
 }}}

 before:

 {{{
 editor = CKEDITOR.appendTo( div2 );
 }}}

 because DOM element must exist in DOM tree.

 The following lines works because are called before "onload" event:
 {{{
         var editor = CKEDITOR.appendTo( div );
         document.getElementById('tests').appendChild(div);
 }}}
 Anyway should be changed with
 {{{
         document.getElementById('tests').appendChild(div);
         var editor = CKEDITOR.appendTo( div );
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3368#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to