character.js 667 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. CKEDITOR.define( [ 'document/node' ], function( Node ) {
  7. /**
  8. * Data structure for character stored in the linear data.
  9. *
  10. * @class Character
  11. */
  12. class Character extends Node {
  13. /**
  14. * Creates character linear item.
  15. *
  16. * @param {String} character Described character.
  17. */
  18. constructor( parent, character, attrs ) {
  19. super( parent, attrs );
  20. /**
  21. * Described character.
  22. *
  23. * @readonly
  24. * @property {String} character
  25. */
  26. this.character = character;
  27. }
  28. }
  29. return Character;
  30. } );