public/ckeditor/4.4dev/core/filter.js
function( newRules ) {
			// Check arguments and constraints. Clear cache.
			// Note: we pass true in the 3rd argument, because disallow() should never
			// be blocked by custom configuration.
			if ( !beforeAddingRule( this, newRules, true ) )
				return false;

			if ( typeof newRules == 'string' )
				newRules = parseRulesString( newRules );

			addAndOptimizeRules( this, newRules, null, this.disallowedContent, this._.disallowedRules );

			return true;
		}
function( newRules ) {
			// Check arguments and constraints. Clear cache.
			// Note: we pass true in the 3rd argument, because disallow() should never
			// be blocked by custom configuration.
			if ( !beforeAddingRule( this, newRules, true ) )
				return false;

			if ( typeof newRules == 'string' )
				newRules = parseRulesString( newRules );

			addAndOptimizeRules( this, newRules, null, this.disallowedContent, this._.disallowedRules );

			return true;
		}
function ( newRules ) { // Check arguments and constraints. Clear cache. // Note: we pass true in the 3rd argument, because disallow() should never // be blocked by custom configuration. if ( ! beforeAddingRule ( this , newRules , true ) ) return false ; if ( typeof newRules == 'string' ) newRules = parseRulesString ( newRules ) ; addAndOptimizeRules ( this , newRules , null , this . disallowedContent , this . _ . disallowedRules ) ; return true ; }
Adds disallowed content rules to the filter.

Read about rules formats in the [Allowed Content Rules guide](#!/guide/dev_allowed_content_rules).

// Disallow all styles on the image elements.
editor.filter.disallow( 'img{*}' );

// Disallow all span and div elements.
editor.filter.disallow( 'span div' );

@since 4.4
@param {CKEDITOR.filter.disallowedContentRules} newRules Rule(s) to be added.
Adds disallowed content rules to the filter .