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
| Option | Type | Default | Description |
|---|---|---|---|
emoticons_database | string | 'emojis' | Name of the emoji database file. |
emoticons_database_url | string | '${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_id | string | 'editor42.plugins.emoticons' | Resource ID for caching. |
emoticons_append | object | {} | Additional user-defined emoji entries to merge. |
emoticons_images_url | string | 'https://twemoji.maxcdn.com/v/13.0.1/72x72/' | Base URL for image-based emoji. |
Commands
| Command | Description |
|---|---|
editor42Emoticons | Opens the emoji picker dialog. |
Toolbar buttons
| Name | Type | Description |
|---|---|---|
emoticons | Button | Emoticons. |
Menu items
| Name | Description |
|---|---|
emoticons | Emoticons. |
Also registers an autocompleter triggered by : with 2+ characters.