public/ckeditor/_source/core/dom/element.js
function( className )
		{
			var c = this.getAttribute( 'class' );
			if ( c )
			{
				var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', 'i' );
				if ( regex.test( c ) )
				{
					c = c.replace( regex, '' ).replace( /^\s+/, '' );

					if ( c )
						this.setAttribute( 'class', c );
					else
						this.removeAttribute( 'class' );
				}
			}
		}
function( className )
		{
			var c = this.getAttribute( 'class' );
			if ( c )
			{
				var regex = new RegExp( '(?:^|\\s+)' + className + '(?=\\s|$)', 'i' );
				if ( regex.test( c ) )
				{
					c = c.replace( regex, '' ).replace( /^\s+/, '' );

					if ( c )
						this.setAttribute( 'class', c );
					else
						this.removeAttribute( 'class' );
				}
			}
		}
function ( className ) { var c = this . getAttribute ( 'class' ) ; if ( c ) { var regex = new RegExp ( '(?:^|\\s+)' + className + '(?=\\s|$)' , 'i' ) ; if ( regex . test ( c ) ) { c = c . replace ( regex , '' ) . replace ( / ^\s+ / , '' ) ; if ( c ) this . setAttribute ( 'class' , c ) ; else this . removeAttribute ( 'class' ) ; } } }
Removes a CSS class name from the elements classes. Other classes
remain untouched.
@param {String} className The name of the class to remove.
@example
var element = new CKEDITOR.dom.element( 'div' );
element.addClass( 'classA' );  // &lt;div class="classA"&gt;
element.addClass( 'classB' );  // &lt;div class="classA classB"&gt;
element.removeClass( 'classA' );  // &lt;div class="classB"&gt;
element.removeClass( 'classB' );  // &lt;div&gt;
Removes a CSS class name from the elements classes . Other classes remain untouched .