/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT );\r
\r
// This node must not be a fake element.\r
- if ( currentNode.getName() != 'img' || !currentNode.getAttribute( '_cke_protected_html' ) )\r
+ if ( !( currentNode.getName() == 'img' && currentNode.getAttribute( '_cke_realelement' ) ) )\r
{\r
// Remove elements nodes that match with this style rules.\r
if ( tagsRegex.test( currentNode.getName() ) )\r