Mimimum syndical pour en faire un produit zope / cmf.
[ckeditor.git] / skins / ckeditor / _source / core / dom / comment.js
diff --git a/skins/ckeditor/_source/core/dom/comment.js b/skins/ckeditor/_source/core/dom/comment.js
new file mode 100644 (file)
index 0000000..4c580da
--- /dev/null
@@ -0,0 +1,32 @@
+/*\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+/**\r
+ * @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents\r
+ *             a DOM comment node.\r
+ */\r
+\r
+CKEDITOR.dom.comment = CKEDITOR.tools.createClass(\r
+{\r
+       base : CKEDITOR.dom.node,\r
+\r
+       $ : function( text, ownerDocument )\r
+       {\r
+               if ( typeof text == 'string' )\r
+                       text = ( ownerDocument ? ownerDocument.$ : document ).createComment( text );\r
+\r
+               this.base( text );\r
+       },\r
+\r
+       proto :\r
+       {\r
+               type : CKEDITOR.NODE_COMMENT,\r
+\r
+               getOuterHtml : function()\r
+               {\r
+                       return '<!--' + this.$.nodeValue + '-->';\r
+               }\r
+       }\r
+});\r