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:
It seems that the SourceEditing plugin is not loaded for the CKEditor 5 balloon editor, while it is correctly loaded for the Web Content editor.
Questions:
How can I display the “Source” button in the CKEditor 5 balloon editor?
If the issue is due to the plugin not being loaded, how can I include it via the Client Extension?
Hi jconrad - thanks for bringing this to us. As you know, this feature is currently in Beta, so it may just be that we haven't implemented support for this yet - but I will let the product team know.
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.
Just a small correction here. You cannot modify a preset, but you can set a fully custom toobar, through toolbar config property. It just needs to have sourceEditing in the end.
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:
I found that the Source Code Editing plugin is only available for the Classic Editor type:
Therefore, I’ll need to use the Enhanced Source Editing feature instead:
Is it possible to use this functionality through an Editor Config Contributor Client Extension?
Also, how can I enable the CKEditor 5 Premium features?
Hi @Jconrad, I am struggling with the same problem, did you find how to add Source Code Editing plugin for fragment's rich-text ballon editor or it is a product limitation as mentioned in above comment by Gerardo. Thanks !
Hi jconrad - thanks for bringing this to us. As you know, this feature is currently in Beta, so it may just be that we haven't implemented support for this yet - but I will let the product team know.
– turnstok