public/ckeditor/_source/core/dom/node.js
function( preserveChildren )
		{
			var $ = this.$;
			var parent = $.parentNode;

			if ( parent )
			{
				if ( preserveChildren )
				{
					// Move all children before the node.
					for ( var child ; ( child = $.firstChild ) ; )
					{
						parent.insertBefore( $.removeChild( child ), $ );
					}
				}

				parent.removeChild( $ );
			}

			return this;
		}
function( preserveChildren )
		{
			var $ = this.$;
			var parent = $.parentNode;

			if ( parent )
			{
				if ( preserveChildren )
				{
					// Move all children before the node.
					for ( var child ; ( child = $.firstChild ) ; )
					{
						parent.insertBefore( $.removeChild( child ), $ );
					}
				}

				parent.removeChild( $ );
			}

			return this;
		}
function ( preserveChildren ) { var $ = this . $ ; var parent = $ . parentNode ; if ( parent ) { if ( preserveChildren ) { // Move all children before the node.
 for ( var child ; ( child = $ . firstChild ) ; ) { parent . insertBefore ( $ . removeChild ( child ) , $ ) ; } } parent . removeChild ( $ ) ; } return this ; }
Removes this node from the document DOM.
@param {Boolean} [preserveChildren] Indicates that the children
elements must remain in the document, removing only the outer
tags.
@example
var element = CKEDITOR.dom.element.getById( 'MyElement' );
<strong>element.remove()</strong>;
Removes this node from the document DOM .