# Brainstorming: Using the color theme for CKEditor

**URL:** <https://forum.xwiki.org/t/brainstorming-using-the-color-theme-for-ckeditor/15282>\
**Category:** Help / Discuss\
**Tags:** brainstorming\
**Created:** [August 5, 2024, 3:43pm UTC](https://forum.xwiki.org/t/brainstorming-using-the-color-theme-for-ckeditor/15282 "2024-08-05T15:43:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [August 5, 2024, 3:43pm UTC](https://forum.xwiki.org/t/brainstorming-using-the-color-theme-for-ckeditor/15282/1 "2024-08-05T15:43:46Z")

</div>

Hello!

## Context

Lately I’ve been spending a bit of time on our integration of CKEditor as a WYSIWYG editor (e.g. [this ticket about the contrast of tables when editing](https://jira.xwiki.org/browse/XWIKI-22334)).

I realized that CKEditor does not follow the current theme. I got used to it quickly when starting to use XWiki, but there’s no reason we do not apply the color theme to CKEditor, except that it would take development time and iterating to make sure we apply it properly.

## Question

**Do you think applying the current color theme to the CKEditor interface is something we should aim for?**

## Details

In my opinion it’s worth a bit of time at least to improve consistency of our UI.  
From what I know, it shouldn’t be too difficult, we already have **some** customization of the CKEditor UI, but it doesn’t cover everything, and it was never discussed before.

From what I understand of the situation, we’ll still be relying on our CKEditor integration for a while. @mleduc probably has a more precise idea than me of when we would drop CKEditor (Cf. [Proposal page about a rich editor alternative](https://design.xwiki.org/xwiki/bin/view/Proposal/RichEditorRealtimeEditing)) and wether such an upgrade is worth it.

## Examples

Those screenshots were made using the Darkly color theme, it makes it easier to spot out what is in the color theme and what is styled by CKEditor.

 ![image](https://forum.xwiki.org/uploads/default/original/2X/e/e9c2a5bfd1a767d1c1dbbe4645858cd0c8746c72.png)  
The dialog windows for image/table insertions are styled radically different:  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/0/00f69e02f289fbfdd617f998b9c3aa3a9f3254ea.png)  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/0/0dbe6559e18ba687a975e3549ddaabdfd3b9aadb.png)  
Other example of a dialogue with an UI which is not consistent with the color theme.  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/0/01a7781ba5e91331b9603942bcd39597b91c823a.png)

This inconsistency in the color theme used poses an issue for the source mode of the editor: white text (from the color theme) on white background (from CKEditor).

 ![image](https://forum.xwiki.org/uploads/default/original/2X/5/5206c3b1305fa76a3482f1531a4344979b922123.png)

## Conclusion

Do you think applying the current color theme to the CKEditor interface is something we should aim for?  
Given the info I have, I’m in favor of trying to improve the consistency of CKEditor in our UI 👍  
If the idea is approved overall, I’ll start opening `consistency` tickets about examples shown above. I’ll open a `usability` ticket for the last one no matter what 🙂

Thank you in advance for your answer!  
Lucas C.

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [August 6, 2024, 10:23am UTC](https://forum.xwiki.org/t/brainstorming-using-the-color-theme-for-ckeditor/15282/2 "2024-08-06T10:23:18Z")

</div>

+1 to fix the important (blocker) issues (like the one making the Source area unusable) and to try to fix inconsistencies, but I wouldn’t spend too much time on this. We should prioritize based on cost versus reward, and if the cost is too much with little reward then leave it as is.

Thanks,  
Marius

---

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [November 18, 2026, 1:52pm UTC](https://forum.xwiki.org/t/brainstorming-using-the-color-theme-for-ckeditor/15282/3 "2026-11-18T13:52:54Z")

</div>

Following Marius’s answer, we did not do a dedicated pass to apply the color theme to CKEditor, only targeted fixes where the cost was low:

- [XWIKI-22334](https://jira.xwiki.org/browse/XWIKI-22334): improved the contrast of the CKEditor tables, fixed in 15.10.12, 16.4.2 and 16.7.0.
- [XWIKI-22780](https://jira.xwiki.org/browse/XWIKI-22780): the redesign of the realtime editing toolbar also gave some of the CKEditor UI the round borders of the skin.
- [XWIKI-24354](https://jira.xwiki.org/browse/XWIKI-24354): improved the contrast of the quick action hint, fixed in 18.4.3 and 18.7.0.

CKEditor 4 is now planned to be replaced by BlockNote, see [Blocknote as the next rich editor for XWiki](https://forum.xwiki.org/t/blocknote-as-the-next-rich-editor-for-xwiki/18087). So it’s not worth spending much more time on styling CKEditor; we’ll only fix the blocking issues. The color  
theme integration should be handled in the BlockNote integration instead.

The bigger question of making the whole UI work with a dark color theme is now part of the dark mode work: [XWIKI-25226](https://jira.xwiki.org/browse/XWIKI-25226) (design proposal, done in 18.9.0) and [XWIKI-21705](https://jira.xwiki.org/browse/XWIKI-21705) (still open).

Thanks for the feedback!
