JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.2
[ckeditor.git] / _source / plugins / removeformat / plugin.js
index 227ae05..b8231dd 100644 (file)
@@ -92,7 +92,7 @@ CKEDITOR.plugins.removeformat =
                                                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