UNPKG

@znuny/ckeditor5-autocomplete-plugin

Version:

A plugin for CKEditor 5 that provides an extendable autocomplete functionality with predefined mention and HTML replacement logic.

25 lines (24 loc) 724 B
/** * @copyright Copyright (c) 2024, Znuny GmbH. * @copyright Copyright (c) 2003-2024, CKSource Holding sp. z o.o. * * @license GNU GPL version 3 * * This software comes with ABSOLUTELY NO WARRANTY. For details, see * the enclosed file COPYING for license information (GPL). If you * did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt. */ /** * @module mention/ui/mentionlistitemview */ import { ListItemView } from 'ckeditor5/src/ui.js'; export class MentionListItemView extends ListItemView { highlight() { const child = this.children.first; child.isOn = true; } removeHighlight() { const child = this.children.first; child.isOn = false; } }