JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / removeformat / plugin.js
index 227ae05..97b858a 100644 (file)
@@ -1,5 +1,5 @@
 /*\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
@@ -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