Ticket #4125: 4125_3.patch

File 4125_3.patch, 1.1 KB (added by WebSpellChecker.net, 14 years ago)
  • _source/plugins/removeformat/plugin.js

     
    9494                                                // This node must not be a fake element.
    9595                                                if ( !( currentNode.getName() == 'img' && currentNode.getAttribute( '_cke_realelement' ) ) )
    9696                                                {
    97                                                         // Remove elements nodes that match with this style rules.
    98                                                         if ( tagsRegex.test( currentNode.getName() ) )
    99                                                                 currentNode.remove( true );
    100                                                         else
    101                                                                 currentNode.removeAttributes( removeAttributes );
     97                                                        // Draft for scayt core. This node must not be a scayt element.
     98                                                        if( !currentNode.getAttribute( 'scaytid' ) )
     99                                                        {
     100                                                                // Remove elements nodes that match with this style rules.
     101                                                                if ( tagsRegex.test( currentNode.getName() ) )
     102                                                                        currentNode.remove( true );
     103                                                                else
     104                                                                        currentNode.removeAttributes( removeAttributes );
     105                                                        }
    102106                                                }
    103107
    104108                                                currentNode = nextNode;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy