﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13889	Error on drag/drop images in inline editor inside an iframe	Bernd Bäumler		"Hi, 

i have got a parent page which loads the ckeditor script and has an iframe in which the contenteditable divs are.

in this configuration, dargging and dropping an image gives an error: 

TypeError: a is undefined: doc:a.document

line: extractHtmlFromRange:function(a,b){var c=w,d={range:a,doc:a.document}

the image is not moved, but sometimes ""null"" is inserted where the image should be.

my setup:

parent page with iframe id=ifr and the following code:

... load ckeditor
... <iframe id=""ifr"" src=""iframe.php""></iframe>

 $(document).ready(

          function(){

                var myFrame = document.getElementById('ifr');
                ifr.onload=function(){

                var contenteditableElement = myFrame.contentWindow.document.getElementById('editor1')

                CKEDITOR.inline( contenteditableElement, {

                    removePlugins: 'maximize,resize'

				} );

                } //onload ifr


            });

iframe.php with <div id=""editor1"" contenteditable></div> and content


If I put the ckeditor script directly into iframe.php, everything works fine

best regards

Bernd
"	Bug	confirmed	Normal		Core : Editable	4.5.0			
