Hi,
I’m currently using DXP 2025.Q3.0 and have enabled the Enhanced Rich Text Editor feature: LPD-11235.
I’d like to add the sourceEditing button (CKEditor documentation)
to the CKEditor 5 balloon toolbar used inside fragment rich text editable fields.
To customize the editor configuration, I’m using a Client Extension (CX) based on the example provided in Liferay’s sample workspace: Sample Editor Config Contributor
I modified the sample index.ts file to:
Keep only the CKEditor 5 configuration
Add the 'sourceEditing' button to the toolbar
I also removed the editorConfigKeys property in the client-extension.yaml file to apply the configuration changes to all editors.
I have attached the client extension.
Observations:
The new toolbar configuration works as expected in Web Content fields – the “Source” button is visible.
However, it is not displayed in the “Description” field, where the button is missing:
The new toolbar configuration works as expected in Web Content fields – the “Source” button is visible.
However, it is not displayed in the “Description” field, where the button is missing:
This is because we have different presets, and “Content” field is using Advanced Preset, that includes “Source” plugin, and “Description” field is using basic preset, that doesn’t include it by default.
The “Source” button is also missing in the CKEditor 5 balloon editor when editing a rich text editable field inside a Fragment
This, for now, is a product limitation, we have not include the source plugin in the Ballon Editor version, as it has other implications. We are figuring out how to add it and solve this limitation.
I confirm that I have activated the CK Editor Feature Flag: Beta FF–11235.
In the .yaml file, I initially removed the editorConfigKeys element so that all editors would be taken into account.
Following your comment, I added editorConfigKeys with the rich_text entry, but that didn’t solve the problem I’m encountering.
I did not find how to attach these two versions of the file here.
Unfortunately, I’m still facing the same issue: I can’t get the example plugins to work.
If I remove 'bookmark', 'timestamp', 'fullscreen', and 'helloworld', and also delete the line extraPlugins: [Fullscreen, HelloWorld],
the new toolbar configured in the Client Extension works correctly — but without any plugins.
Another question:
With Alloy Editor, in a rich-text editable field of a fragment, can I add the SourceEditing plugin?
If so, how?
This is an issue from the core side. Currently, it seems that it cannot load all CKEditor 5 plugins. I had to modify the following files to make it work: