Sha256: 460872a62645e43695fb49eaca4cfeb4d92571ab82234c5a85513b432ebc73d0

Contents?: true

Size: 1.34 KB

Versions: 66

Compression:

Stored size: 1.34 KB

Contents

/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

/**
 * @class DocumentFragment is a "lightweight" or "minimal" Document object. It is
 * commonly used to extract a portion of a document's tree or to create a new
 * fragment of a document. Various operations may take DocumentFragment objects
 * as arguments and results in all the child nodes of the DocumentFragment being
 * moved to the child list of this node.
 * @param {Object} ownerDocument
 */
CKEDITOR.dom.documentFragment = function( ownerDocument )
{
	ownerDocument = ownerDocument || CKEDITOR.document;
	this.$ = ownerDocument.$.createDocumentFragment();
};

CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
	CKEDITOR.dom.element.prototype,
	{
		type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
		insertAfterNode : function( node )
		{
			node = node.$;
			node.parentNode.insertBefore( this.$, node.nextSibling );
		}
	},
	true,
	{
		'append' : 1,
		'appendBogus' : 1,
		'getFirst' : 1,
		'getLast' : 1,
		'appendTo' : 1,
		'moveChildren' : 1,
		'insertBefore' : 1,
		'insertAfterNode' : 1,
		'replace' : 1,
		'trim' : 1,
		'type' : 1,
		'ltrim' : 1,
		'rtrim' : 1,
		'getDocument' : 1,
		'getChildCount' : 1,
		'getChild' : 1,
		'getChildren' : 1
	} );

Version data entries

66 entries across 66 versions & 9 rubygems

Version Path
blog_logic-1.4.2 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
editorial_logic-1.4.2 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
site_logic-1.9.4 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
site_logic-1.9.3 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.4.1 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
ppc_logic-0.8.0 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
editorial_logic-1.4.1 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.4.0 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
editorial_logic-1.4.0 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.3.1 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.3.0 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.2.4 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
site_logic-1.9.2 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.2.3 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.2.2 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.2.1 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
editorial_logic-1.3.3 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
site_logic-1.9.1 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.2.0 public/javascripts/ckeditor/_source/core/dom/documentfragment.js
blog_logic-1.1.9 public/javascripts/ckeditor/_source/core/dom/documentfragment.js