Editor Config Contributor
Extend the configuration of Liferay's rich-text editors.
# description
Adds JavaScript that mutates the CKEditor / AlloyEditor configuration object before the editor initializes.
UI extensions that render on Liferay pages or modify page appearance.
# when to use
- →You need custom toolbar buttons, plugins, or content filters in editors.
- →You want editor configs to differ per portlet (only comments, only web-content, etc.).
# how to use
- 01Export a default function that receives + returns a config object.
- 02Optionally scope the override via
editorConfigKeys,editorNames, orportletNames.
# required fields
| field | type | description |
|---|---|---|
urlrequired | string | Path to the JS module implementing the contributor. |
# optional fields
| field | type | description |
|---|---|---|
name | string | Display name. |
editorConfigKeys | string[] | Editor configuration keys this contributor overrides; omit = all. |
editorNames | string[] | Restrict to specific editors. |
portletNames | string[] | Restrict to editors inside specific portlets. |
# example
client-extension.yaml
my-editor-config:
type: editorConfigContributor
name: Custom Toolbar
url: editor-config.js
portletNames:
- com_liferay_journal_web_portlet_JournalPortlet