Skip to main content

Emoticons

Plugin alias: emoticons

editor42.init({
plugins: 'emoticons'
});

Provides an emoji picker dialog and inline autocomplete for inserting Unicode emoji characters into the editor. Loads an external emoji database, organizes entries by category, and supports both a browsable tabbed dialog and a colon-triggered (:) autocomplete dropdown.

Options

OptionTypeDefaultDescription
emoticons_databasestring'emojis'Name of the emoji database file.
emoticons_database_urlstring'${pluginUrl}/js/${emoticons_database}${suffix}.js'Full URL to the emoji database script. Constructed dynamically from the plugin path, database name, and editor suffix.
emoticons_database_idstring'editor42.plugins.emoticons'Resource ID for caching.
emoticons_appendobject{}Additional user-defined emoji entries to merge.
emoticons_images_urlstring'https://twemoji.maxcdn.com/v/13.0.1/72x72/'Base URL for image-based emoji.

Commands

CommandDescription
editor42EmoticonsOpens the emoji picker dialog.

Toolbar buttons

NameTypeDescription
emoticonsButtonEmoticons.
NameDescription
emoticonsEmoticons.

Also registers an autocompleter triggered by : with 2+ characters.