Как настроить цветовую палитру CKEditor 5 в Strapi 4 с помощью @ckeditor/strapi-plugin-ckeditor 0.0.10Javascript

Форум по Javascript
Ответить Пред. темаСлед. тема
Anonymous
 Как настроить цветовую палитру CKEditor 5 в Strapi 4 с помощью @ckeditor/strapi-plugin-ckeditor 0.0.10

Сообщение Anonymous »

Я пытаюсь настроить цветовую палитру по умолчанию в CKEditor 5 для моего приложения Strapi 4. Я хочу заменить цвета по умолчанию на цвета нашего бренда из нашей системы дизайна.
Окружающая среда:
  • Версия Strapi: 4.25.5
  • Плагин CKEditor: @ckeditor/[email protected]
    Версия Node.js: 22.11.0
Текущие зависимости package.json:
{
"dependencies": {
"@ckeditor/strapi-plugin-ckeditor": "1.1.0",
"@strapi/strapi": "4.25.5",
// ... other relevant dependencies
}
}

1. Added CKEditor configuration in config/plugins.js:

module.exports = () => ({
ckeditor: {
enabled: true,
config: {
// ... my configuration attempt
}
}
});

2. Cleared cache and rebuilt:
rm -rf build
yarn build
yarn develop
I have no .cache folder.
However, the default color palette remains unchanged.

**Expected behavior:
*Custom brand colors should appear in the color picker dropdown
*Each color should have a custom label (e.g., "Pin Grün Dark", "PIN Blau Dark")
**Current behavior:
*Default CKEditor color palette is still showing
*Custom colors are not appearing in the dropdown
**Question:
How can I properly configure the CKEditor plugin to use my custom color palette? What's the correct configuration structure for version 1.1.0 of the plugin?


Подробнее здесь: https://stackoverflow.com/questions/793 ... trapi-plug
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Javascript»