X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Fcomment.js;h=a55b489c8ba3cd92a96f4de6e67484c569855902;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=c2f4f25a7e8e0be0104404e6646db24f48175f74;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/htmlparser/comment.js b/_source/core/htmlparser/comment.js index c2f4f25..a55b489 100644 --- a/_source/core/htmlparser/comment.js +++ b/_source/core/htmlparser/comment.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -44,11 +44,12 @@ CKEDITOR.htmlParser.comment.prototype = if ( filter ) { - if ( !( comment = filter.onComment( comment ) ) ) + if ( !( comment = filter.onComment( comment, this ) ) ) return; if ( typeof comment != 'string' ) { + comment.parent = this.parent; comment.writeHtml( writer, filter ); return; }