text changes to registration mail content
[namibia] / public / scripts / ckeditor / _source / core / htmlparser / text.js
1 /*
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
4 */
5
6 (function()
7 {
8         /**
9          * A lightweight representation of HTML text.
10          * @constructor
11          * @example
12          */
13         CKEDITOR.htmlParser.text = function( value )
14         {
15                 /**
16                  * The text value.
17                  * @type String
18                  * @example
19                  */
20                 this.value = value;
21
22                 /** @private */
23                 this._ =
24                 {
25                         isBlockLike : false
26                 };
27         };
28
29         CKEDITOR.htmlParser.text.prototype =
30         {
31                 /**
32                  * The node type. This is a constant value set to {@link CKEDITOR.NODE_TEXT}.
33                  * @type Number
34                  * @example
35                  */
36                 type : CKEDITOR.NODE_TEXT,
37
38                 /**
39                  * Writes the HTML representation of this text to a CKEDITOR.htmlWriter.
40                  * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
41                  * @example
42                  */
43                 writeHtml : function( writer, filter )
44                 {
45                         var text = this.value;
46
47                         if ( filter && !( text = filter.onText( text, this ) ) )
48                                 return;
49
50                         writer.text( text );
51                 }
52         };
53 })();