Ticket #7092: 7092_2.patch

File 7092_2.patch, 1.2 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/styles/plugin.js

     
    6161                                        // callback.
    6262                                        var currentState = callback.style.checkActive( ev.data.path ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF;
    6363
    64                                         // If the state changed since the last check.
    65                                         if ( callback.state !== currentState )
    66                                         {
    67                                                 // Call the callback function, passing the current
    68                                                 // state to it.
    69                                                 callback.fn.call( this, currentState );
    70 
    71                                                 // Save the current state, so it can be compared next
    72                                                 // time.
    73                                                 callback.state = currentState;
    74                                         }
    75                                 }
     64                                        // Call the callback function, passing the current
     65                                        // state to it.
     66                                        callback.fn.call( this, currentState );
     67                                }
    7668                        });
    7769        }
    7870
     
    703695                                                 * them before removal.
    704696                                                 */
    705697                                                element.mergeSiblings();
    706                                                 removeFromElement( this, element );
    707 
     698                                                if ( element.getName() == this.element )
     699                                                        removeFromElement( this, element );
     700                                                else
     701                                                        removeOverrides( element, getOverrides( this )[ element.getName() ] );
    708702                                        }
    709703                                }
    710704                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy