/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
{\r
color = block && block.getComputedStyle( type == 'back' ? 'background-color' : 'color' ) || 'transparent';\r
}\r
- while ( type == 'back' && color == 'transparent' && ( block = block.getParent() ) );\r
+ while ( type == 'back' && color == 'transparent' && block && ( block = block.getParent() ) );\r
\r
// The box should never be transparent.\r
if ( !color || color == 'transparent' )\r
\r
function isUnstylable( ele )\r
{\r
- return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-cke-nostyle' );\r
+ return ( ele.getAttribute( 'contentEditable' ) == 'false' ) || ele.getAttribute( 'data-nostyle' );\r
}\r
}\r
});\r