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