JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.1
[ckeditor.git] / _samples / divreplace.html
index 34e0187..660b841 100644 (file)
@@ -50,7 +50,8 @@ function onDoubleClick( ev )
        // Find out the div that holds this element.\r
        element = element.parentNode;\r
 \r
-       if ( element.nodeName.toLowerCase() == 'div' )\r
+       if ( element.nodeName.toLowerCase() == 'div'\r
+                && ( element.className.indexOf( 'editable' ) != -1 ) )\r
                replaceDiv( element );\r
 }\r
 \r