todolist.js 893 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * @module list/todolist
  7. */
  8. import TodoListEditing from './todolistediting';
  9. import TodoListUI from './todolistui';
  10. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  11. import '../theme/todolist.css';
  12. /**
  13. * The to-do list feature.
  14. *
  15. * This is a "glue" plugin that loads the {@link module:list/todolistediting~TodoListEditing to-do list editing feature}
  16. * and the {@link module:list/todolistui~TodoListUI to-do list UI feature}.
  17. *
  18. * @extends module:core/plugin~Plugin
  19. */
  20. export default class TodoList extends Plugin {
  21. /**
  22. * @inheritDoc
  23. */
  24. static get requires() {
  25. return [ TodoListEditing, TodoListUI ];
  26. }
  27. /**
  28. * @inheritDoc
  29. */
  30. static get pluginName() {
  31. return 'TodoList';
  32. }
  33. }