8
0

character.js 669 B

1234567891011121314151617181920212223242526272829303132333435
  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. * @constructor
  18. */
  19. constructor( character, attrs ) {
  20. super( attrs );
  21. /**
  22. * Described character.
  23. *
  24. * @readonly
  25. * @property {String} character
  26. */
  27. this.character = character;
  28. }
  29. }
  30. return Character;
  31. } );