| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- 'use strict';
- CKEDITOR.define( [], () => {
- /**
- * Data structure for text with attributes. Note that the `Text` is not a {@link document.Node},
- * because it will never be part of the document tree. {@link document.Character is a node}.
- *
- * @class document.Text
- */
- class Text {
- /**
- * Creates a text with attributes.
- *
- * @param {String} text Described text.
- * @param {Iterable} attrs Iterable collection of {@link document.Attribute attributes}.
- * @constructor
- */
- constructor( text, attrs ) {
- /**
- * Text.
- *
- * @readonly
- * @property {String}
- */
- this.text = text;
- /**
- * Iterable collection of {@link document.Attribute attributes}.
- *
- * @property {Iterable}
- */
- this.attrs = attrs;
- }
- }
- return Text;
- } );
|