public/ckeditor/_source/plugins/styles/plugin.js
function removeFromInsideElement( style, element )
	{
		var def = style._.definition,
			attribs = def.attributes,
			styles = def.styles,
			overrides = getOverrides( style ),
			innerElements = element.getElementsByTag( style.element );

		for ( var i = innerElements.count(); --i >= 0 ; )
			removeFromElement( style,  innerElements.getItem( i ) );

		// Now remove any other element with different name that is
		// defined to be overriden.
		for ( var overrideElement in overrides )
		{
			if ( overrideElement != style.element )
			{
				innerElements = element.getElementsByTag( overrideElement ) ;
				for ( i = innerElements.count() - 1 ; i >= 0 ; i-- )
				{
					var innerElement = innerElements.getItem( i );
					removeOverrides( innerElement, overrides[ overrideElement ] ) ;
				}
			}
		}
	}
function removeFromInsideElement( style, element )
	{
		var def = style._.definition,
			attribs = def.attributes,
			styles = def.styles,
			overrides = getOverrides( style ),
			innerElements = element.getElementsByTag( style.element );

		for ( var i = innerElements.count(); --i >= 0 ; )
			removeFromElement( style,  innerElements.getItem( i ) );

		// Now remove any other element with different name that is
		// defined to be overriden.
		for ( var overrideElement in overrides )
		{
			if ( overrideElement != style.element )
			{
				innerElements = element.getElementsByTag( overrideElement ) ;
				for ( i = innerElements.count() - 1 ; i >= 0 ; i-- )
				{
					var innerElement = innerElements.getItem( i );
					removeOverrides( innerElement, overrides[ overrideElement ] ) ;
				}
			}
		}
	}
function removeFromInsideElement ( style , element ) { var def = style . _ . definition , attribs = def . attributes , styles = def . styles , overrides = getOverrides ( style ) , innerElements = element . getElementsByTag ( style . element ) ; for ( var i = innerElements . count ( ) ; -- i >= 0 ; ) removeFromElement ( style , innerElements . getItem ( i ) ) ; // Now remove any other element with different name that is
 // defined to be overriden.
 for ( var overrideElement in overrides ) { if ( overrideElement != style . element ) { innerElements = element . getElementsByTag ( overrideElement ) ; for ( i = innerElements . count ( ) - 1 ; i >= 0 ; i -- ) { var innerElement = innerElements . getItem ( i ) ; removeOverrides ( innerElement , overrides [ overrideElement ] ) ; } } } }
Removes a style from inside an element.
Removes a style from inside an element .