mentionlistitemview.js 534 B

123456789101112131415161718192021222324
  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 mention/ui/mentionlistitemview
  7. */
  8. import ListItemView from '@ckeditor/ckeditor5-ui/src/list/listitemview';
  9. export default class MentionListItemView extends ListItemView {
  10. highlight() {
  11. const child = this.children.first;
  12. child.isOn = true;
  13. }
  14. removeHighlight() {
  15. const child = this.children.first;
  16. child.isOn = false;
  17. }
  18. }