1 /* 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 */ 5 6 /** 7 * A lightweight representation of an HTML comment. 8 * @constructor 9 * @example 10 */ 11 CKEDITOR.htmlParser.comment = function( value ) 12 { 13 /** 14 * The comment text. 15 * @type String 16 * @example 17 */ 18 this.value = value; 19 20 /** @private */ 21 this._ = 22 { 23 isBlockLike : false 24 }; 25 }; 26 27 CKEDITOR.htmlParser.comment.prototype = 28 { 29 /** 30 * The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}. 31 * @type Number 32 * @example 33 */ 34 type : CKEDITOR.NODE_COMMENT, 35 36 /** 37 * Writes the HTML representation of this comment to a CKEDITOR.htmlWriter. 38 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML. 39 * @example 40 */ 41 writeHtml : function( writer ) 42 { 43 writer.comment( this.value ); 44 } 45 }; 46