Ticket #3918: 3918.patch

File 3918.patch, 1.4 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/removeformat/plugin.js

     
    9292                                                var nextNode = currentNode.getNextSourceNode( false, CKEDITOR.NODE_ELEMENT );
    9393
    9494                                                // This node must not be a fake element.
    95                                                 if ( currentNode.getName() != 'img' || !currentNode.getAttribute( '_cke_protected_html' ) )
     95                                                if ( !( currentNode.getName() == 'img' && currentNode.getAttribute( '_cke_realelement' ) ) )
    9696                                                {
    9797                                                        // Remove elements nodes that match with this style rules.
    9898                                                        if ( tagsRegex.test( currentNode.getName() ) )
  • _source/plugins/image/dialogs/image.js

     
    242242                                                this.setupContent( LINK, link );
    243243                                }
    244244
    245                                 if ( element && element.getName() == 'img' && !element.getAttribute( '_cke_protected_html' ) )
     245                                if ( element && element.getName() == 'img' && !element.getAttribute( '_cke_realelement' ) )
    246246                                        this.imageEditMode = 'img';
    247247                                else if ( element && element.getName() == 'input' && element.getAttribute( 'type' ) && element.getAttribute( 'type' ) == 'image' )
    248248                                        this.imageEditMode = 'input';
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy