public/ckeditor/4.4dev/core/editable.js
function stripBlockTagIfSingleLine( dataWrapper ) {
			var block, children;

			if ( dataWrapper.getChildCount() == 1 &&					// Only one node bein inserted.
				checkIfElement( block = dataWrapper.getFirst() ) &&		// And it's an element.
				block.is( stripSingleBlockTags ) )						// That's <p> or <div> or header.
			{
				// Check children not containing block.
				children = block.getElementsByTag( '*' );
				for ( var i = 0, child, count = children.count(); i < count; i++ ) {
					child = children.getItem( i );
					if ( !child.is( inlineButNotBr ) )
						return;
				}

				block.moveChildren( block.getParent( 1 ) );
				block.remove();
			}
		}
function stripBlockTagIfSingleLine( dataWrapper ) {
			var block, children;

			if ( dataWrapper.getChildCount() == 1 &&					// Only one node bein inserted.
				checkIfElement( block = dataWrapper.getFirst() ) &&		// And it's an element.
				block.is( stripSingleBlockTags ) )						// That's <p> or <div> or header.
			{
				// Check children not containing block.
				children = block.getElementsByTag( '*' );
				for ( var i = 0, child, count = children.count(); i < count; i++ ) {
					child = children.getItem( i );
					if ( !child.is( inlineButNotBr ) )
						return;
				}

				block.moveChildren( block.getParent( 1 ) );
				block.remove();
			}
		}
function stripBlockTagIfSingleLine ( dataWrapper ) { var block , children ; if ( dataWrapper . getChildCount ( ) == 1 && // Only one node bein inserted. checkIfElement ( block = dataWrapper . getFirst ( ) ) && // And it's an element. block . is ( stripSingleBlockTags ) ) // That's <p> or <div> or header. { // Check children not containing block. children = block . getElementsByTag ( '*' ) ; for ( var i = 0 , child , count = children . count ( ) ; i < count ; i ++ ) { child = children . getItem ( i ) ; if ( ! child . is ( inlineButNotBr ) ) return ; } block . moveChildren ( block . getParent ( 1 ) ) ; block . remove ( ) ; } }
Rule 7.
Rule 7 .