X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Fdivreplace.html;h=660b8413df87450affba2c49215d15a85389cd72;hp=34e0187e83d3d79952cd1e663b3662a178c26adb;hb=8761695d9b70afe75905deaac88f78c1f8aeb32d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_samples/divreplace.html b/_samples/divreplace.html index 34e0187..660b841 100644 --- a/_samples/divreplace.html +++ b/_samples/divreplace.html @@ -50,7 +50,8 @@ function onDoubleClick( ev ) // Find out the div that holds this element. element = element.parentNode; - if ( element.nodeName.toLowerCase() == 'div' ) + if ( element.nodeName.toLowerCase() == 'div' + && ( element.className.indexOf( 'editable' ) != -1 ) ) replaceDiv( element ); }