X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fhtmlparser%2Fcomment.js;h=0cc5419645da5b1f66b621f45c4992e8c60feb25;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=c2f4f25a7e8e0be0104404e6646db24f48175f74;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/htmlparser/comment.js b/_source/core/htmlparser/comment.js index c2f4f25..0cc5419 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-2012, 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; }