Sha256: d87c2c3c604cf23570ceab5e9fb5e81cde20bf0dd6a7fae48156a4b7326f2afc

Contents?: true

Size: 1.34 KB

Versions: 88

Compression:

Stored size: 1.34 KB

Contents

/*
Copyright (c) 2003-2011, 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

88 entries across 85 versions & 9 rubygems

Version Path
classiccms-0.5.13 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.12 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.11 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.10 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.9 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
radiant-ck_editor_filter-extension-0.2.7 public/javascripts/extensions/ck_editor_filter/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.8 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.7 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.6 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.5 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.2 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.1 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.5.0 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.4.2 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.4.1 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.4.0 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.3.9 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
radiant-ck_editor_filter-extension-0.2.6 public/javascripts/extensions/ck_editor_filter/ckeditorrr/_source/core/dom/documentfragment.js
classiccms-0.3.8 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js
classiccms-0.3.7 lib/classiccms/public/js/ckeditor/_source/core/dom/documentfragment.js