Skip to content

ckeditor5-elements / QuickInsertView

Class: QuickInsertView ​

A search field with a filtered list of insertable elements.

In the search field, Enter chooses the first matching item and the down arrow moves the focus to the list. Fires execute with { value: name } when an item is chosen.

Extends ​

Constructors ​

Constructor ​

ts
new QuickInsertView(locale, items): QuickInsertView;

Parameters ​

ParameterType
localeLocale
itemsreadonly QuickInsertItem[]

Returns ​

QuickInsertView

Overrides ​

SearchTextView.constructor

Properties ​

listView ​

ts
readonly listView: QuickInsertListView;

The list of elements.

Methods ​

render() ​

ts
render(): void;

Renders the view and sets up Enter (choose the first match) and the down arrow (go to the list) in the search field.

Returns ​

void

Overrides ​

SearchTextView.render