X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fremoveformat%2Fplugin.js;h=b8231ddebefc5773b085fb6f8732eb40724e29a8;hp=227ae05d908f138c2ca9e4a68dfb9cf350cad42b;hb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d diff --git a/_source/plugins/removeformat/plugin.js b/_source/plugins/removeformat/plugin.js index 227ae05..b8231dd 100644 --- a/_source/plugins/removeformat/plugin.js +++ b/_source/plugins/removeformat/plugin.js @@ -92,7 +92,7 @@ CKEDITOR.plugins.removeformat = var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT ); // This node must not be a fake element. - if ( currentNode.getName() != 'img' || !currentNode.getAttribute( '_cke_protected_html' ) ) + if ( !( currentNode.getName() == 'img' && currentNode.getAttribute( '_cke_realelement' ) ) ) { // Remove elements nodes that match with this style rules. if ( tagsRegex.test( currentNode.getName() ) )