Report an issue
Class

CKEDITOR.plugins.autocomplete

classsince 4.10.0

The main class implementing a generic Autocomplete feature in the editor. It acts as a controller that works with the model and view classes.

It is possible to maintain multiple autocomplete instances for a single editor at a time. In order to create an autocomplete instance use its constructor.

Filtering

Properties

  • readonly

    commitKeystrokes : Number[]

    The autocomplete keystrokes used to finish autocompletion with the selected view item. The property is using the CKEDITOR.config.autocomplete_commitKeystrokes configuration option as default keystrokes. You can change this property to set individual keystrokes for the plugin instance.

  • readonly

    editor : editor

    The editor instance that autocomplete is attached to.

  • since 4.20.0 readonly

    followingSpace : Boolean

    Indicates if a following space should be added after inserted match into an editor.

  • readonly

    model : model

    The autocomplete model instance.

  • readonly

    outputTemplate : template

    Template of markup to be inserted as the autocomplete item gets committed.

    You can use item properties to customize the template.

    var outputTemplate = `<a href="/tracker/{ticket}">#{ticket} ({name})</a>`;
    

    Defaults to null

  • readonly

    textWatcher : textWatcher

    The autocomplete text watcher instance.

  • throttle : Number

    Indicates throttle threshold expressed in milliseconds, reducing text checks frequency.

    Defaults to 20

  • readonly

    view : view

    The autocomplete view instance.

  • private

    _listeners : Array

    Listeners registered by this autocomplete instance.

    Defaults to []

Methods