2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
9 * A lightweight representation of HTML text.
13 CKEDITOR.htmlParser.text = function( value )
29 CKEDITOR.htmlParser.text.prototype =
32 * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
36 type : CKEDITOR.NODE_TEXT,
39 * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
40 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
43 writeHtml : function( writer, filter )
45 var text = this.value;
47 if ( filter && !( text = filter.onText( text, this ) ) )