JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.3
[ckeditor.git] / _source / plugins / colorbutton / plugin.js
index 16ad1f2..77c002a 100644 (file)
@@ -66,7 +66,7 @@ CKEDITOR.plugins.add( 'colorbutton',
                                                        color;\r
 \r
                                                // Find the closest block element.\r
-                                               block = path.block || path.blockLimit;\r
+                                               block = path.block || path.blockLimit || editor.document.getBody();\r
 \r
                                                // The background color might be transparent. In that case, look up the color in the DOM tree.\r
                                                do\r