source: sandbox/2.3-MailArchiver/filemanager/tp/ckeditor/_source/core/dom/documentfragment.js @ 6779

Revision 6779, 1.3 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
1/*
2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.html or http://ckeditor.com/license
4*/
5/**
6 * DocumentFragment is a "lightweight" or "minimal" Document object. It is
7 * commonly used to extract a portion of a document's tree or to create a new
8 * fragment of a document. Various operations may take DocumentFragment objects
9 * as arguments and results in all the child nodes of the DocumentFragment being
10 * moved to the child list of this node.
11 *
12 * @param {Object} ownerDocument
13 */
14CKEDITOR.dom.documentFragment = function( ownerDocument )
15{
16        ownerDocument = ownerDocument || CKEDITOR.document;
17        this.$ = ownerDocument.$.createDocumentFragment();
18};
19
20CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
21        CKEDITOR.dom.element.prototype,
22        {
23                type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
24                insertAfterNode : function( node )
25                {
26                        node = node.$;
27                        node.parentNode.insertBefore( this.$, node.nextSibling );
28                }
29        },
30        true,
31        {
32                'append' : 1,
33                'appendBogus' : 1,
34                'getFirst' : 1,
35                'getLast' : 1,
36                'appendTo' : 1,
37                'moveChildren' : 1,
38                'insertBefore' : 1,
39                'insertAfterNode' : 1,
40                'replace' : 1,
41                'trim' : 1,
42                'type' : 1,
43                'ltrim' : 1,
44                'rtrim' : 1,
45                'getDocument' : 1,
46                'getChildCount' : 1,
47                'getChild' : 1,
48                'getChildren' : 1
49        } );
Note: See TracBrowser for help on using the repository browser.