]>
git.immae.eu Git - perso/Immae/Projets/packagist/connexionswing-ckeditor-component.git/blob - sources/core/htmlparser/cdata.js
4ece2b7e94cfb68c7a6bf90ba950a4038da2724b
2 * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
11 * A lightweight representation of HTML CDATA.
14 * @extends CKEDITOR.htmlParser.node
15 * @constructor Creates a cdata class instance.
16 * @param {String} value The CDATA section value.
18 CKEDITOR
.htmlParser
.cdata = function( value
) {
27 CKEDITOR
.htmlParser
.cdata
.prototype = CKEDITOR
.tools
.extend( new CKEDITOR
.htmlParser
.node(), {
29 * CDATA has the same type as {@link CKEDITOR.htmlParser.text} This is
30 * a constant value set to {@link CKEDITOR#NODE_TEXT}.
33 * @property {Number} [=CKEDITOR.NODE_TEXT]
35 type: CKEDITOR
.NODE_TEXT
,
37 filter: function() {},
40 * Writes the CDATA with no special manipulations.
42 * @param {CKEDITOR.htmlParser.basicWriter} writer The writer to which write the HTML.
44 writeHtml: function( writer
) {
45 writer
.write( this.value
);