From ea90fa8691feced8e640e7fb91d3918ccd3fa81e Mon Sep 17 00:00:00 2001 From: Mark Michaelis Date: Thu, 12 Oct 2023 09:26:41 +0200 Subject: [PATCH] refactor: Adapt App to Matured BBCodeColor Now that we are not forced using hex-value representations for colors anymore in the `FontColor` plugin, adapted the set of colors to represent different formats. All will be transformed to hex codes (or hexa) when stored as `[color]` tag. --- app/src/editors/bbCode.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/editors/bbCode.ts b/app/src/editors/bbCode.ts index 6b31682903..ae10adf4a0 100644 --- a/app/src/editors/bbCode.ts +++ b/app/src/editors/bbCode.ts @@ -123,7 +123,7 @@ export const createBBCodeEditor: CKEditorInstanceFactory = ( fontColor: { colors: [ { - color: "#000000", + color: "hsl(0,0%,0%)", label: "Black", }, { @@ -131,7 +131,7 @@ export const createBBCodeEditor: CKEditorInstanceFactory = ( label: "Red", }, { - color: "#ffff00", + color: "rgb(255,255,0)", label: "Yellow", }, { @@ -147,12 +147,17 @@ export const createBBCodeEditor: CKEditorInstanceFactory = ( label: "Blue", }, { - color: "#ff00ff", + color: "fuchsia", label: "Fuchsia", }, { color: "#ffffff", label: "White", + hasBorder: true, + }, + { + color: "rgba(0,0,0,0.63)", + label: "Darken", }, ], colorPicker: {