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