JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / core / htmlparser / comment.js
index c2f4f25..67830d9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -44,11 +44,12 @@ CKEDITOR.htmlParser.comment.prototype =
 \r
                if ( filter )\r
                {\r
-                       if ( !( comment = filter.onComment( comment ) ) )\r
+                       if ( !( comment = filter.onComment( comment, this ) ) )\r
                                return;\r
 \r
                        if ( typeof comment != 'string' )\r
                        {\r
+                               comment.parent = this.parent;\r
                                comment.writeHtml( writer, filter );\r
                                return;\r
                        }\r