Skip to content

Commit

Permalink
refactor: Adapt App to Matured BBCodeColor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mmichaelis committed Oct 12, 2023
1 parent 5f4f498 commit ea90fa8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/src/editors/bbCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ export const createBBCodeEditor: CKEditorInstanceFactory = (
fontColor: {
colors: [
{
color: "#000000",
color: "hsl(0,0%,0%)",
label: "Black",
},
{
color: "#ff0000",
label: "Red",
},
{
color: "#ffff00",
color: "rgb(255,255,0)",
label: "Yellow",
},
{
Expand All @@ -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: {
Expand Down

0 comments on commit ea90fa8

Please sign in to comment.