import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / _source / classes / fckdocumentfragment_gecko.js
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/classes/fckdocumentfragment_gecko.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/classes/fckdocumentfragment_gecko.js
new file mode 100644 (file)
index 0000000..04a3099
--- /dev/null
@@ -0,0 +1,53 @@
+/*\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ *  - GNU General Public License Version 2 or later (the "GPL")\r
+ *    http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ *    http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ *    http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * This is a generic Document Fragment object. It is not intended to provide\r
+ * the W3C implementation, but is a way to fix the missing of a real Document\r
+ * Fragment in IE (where document.createDocumentFragment() returns a normal\r
+ * document instead), giving a standard interface for it.\r
+ * (IE Implementation)\r
+ */\r
+\r
+var FCKDocumentFragment = function( parentDocument, baseDocFrag )\r
+{\r
+       this.RootNode = baseDocFrag || parentDocument.createDocumentFragment() ;\r
+}\r
+\r
+FCKDocumentFragment.prototype =\r
+{\r
+\r
+       // Append the contents of this Document Fragment to another element.\r
+       AppendTo : function( targetNode )\r
+       {\r
+               targetNode.appendChild( this.RootNode ) ;\r
+       },\r
+\r
+       AppendHtml : function( html )\r
+       {\r
+               var eTmpDiv = this.RootNode.ownerDocument.createElement( 'div' ) ;\r
+               eTmpDiv.innerHTML = html ;\r
+               FCKDomTools.MoveChildren( eTmpDiv, this.RootNode ) ;\r
+       },\r
+\r
+       InsertAfterNode : function( existingNode )\r
+       {\r
+               FCKDomTools.InsertAfterNode( existingNode, this.RootNode ) ;\r
+       }\r
+}\r