iconmanagermodel.tpl 543 B

1234567891011121314151617181920212223
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. import Model from '/ckeditor5/ui/model.js';
  7. const iconIds = [ {{#shapes}}'{{name}}',{{/shapes}} ];
  8. const iconPrefix = 'ck-icon-';
  9. /**
  10. * Provides a Model containing icon sprite form IconManagerView.
  11. *
  12. * @memberOf ui.iconManagerModel
  13. * @extends ui.Model
  14. */
  15. export default new Model( {
  16. icons: iconIds.map( i => i.slice( iconPrefix.length ) ),
  17. sprite: `{{#shapes}}{{{svg}}}{{/shapes}}`
  18. } );