JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / core / htmlparser / cdata.js
1 /*\r
2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 (function()\r
7 {\r
8 \r
9         /**\r
10          * A lightweight representation of HTML text.\r
11          * @constructor\r
12          * @example\r
13          */\r
14         CKEDITOR.htmlParser.cdata = function( value )\r
15         {\r
16                 /**\r
17                  * The CDATA value.\r
18                  * @type String\r
19                  * @example\r
20                  */\r
21                 this.value = value;\r
22         };\r
23 \r
24         CKEDITOR.htmlParser.cdata.prototype =\r
25         {\r
26                 /**\r
27                  * CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is\r
28                  * a constant value set to {@link CKEDITOR.NODE_TEXT}.\r
29                  * @type Number\r
30                  * @example\r
31                  */\r
32                 type : CKEDITOR.NODE_TEXT,\r
33 \r
34                 /**\r
35                  * Writes write the CDATA with no special manipulations.\r
36                  * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.\r
37                  */\r
38                 writeHtml : function( writer )\r
39                 {\r
40                         writer.write( this.value );\r
41                 }\r
42         };\r
43 })();\r