NOW MANAGED ON CODEBERG
Lexical: Fixed highlight format action, changed label
Dan Brown5fc19b0edf3c
diff --git a/lang/en/editor.php b/lang/en/editor.phpindex 752c6f3f7..0d250e9a7 100644--- a/lang/en/editor.php+++ b/lang/en/editor.php@@ -48,6 +48,7 @@ return ['superscript' => 'Superscript','subscript' => 'Subscript','text_color' => 'Text color',+ 'highlight_color' => 'Highlight color','custom_color' => 'Custom color','remove_color' => 'Remove color','background_color' => 'Background color',diff --git a/resources/js/wysiwyg/ui/defaults/buttons/inline-formats.ts b/resources/js/wysiwyg/ui/defaults/buttons/inline-formats.tsindex c5b7ad29a..11411e140 100644--- a/resources/js/wysiwyg/ui/defaults/buttons/inline-formats.ts+++ b/resources/js/wysiwyg/ui/defaults/buttons/inline-formats.ts@@ -32,7 +32,7 @@ export const bold: EditorButtonDefinition = buildFormatButton('Bold', 'bold', boexport const italic: EditorButtonDefinition = buildFormatButton('Italic', 'italic', italicIcon);export const underline: EditorButtonDefinition = buildFormatButton('Underline', 'underline', underlinedIcon);export const textColor: EditorBasicButtonDefinition = {label: 'Text color', icon: textColorIcon};-export const highlightColor: EditorBasicButtonDefinition = {label: 'Background color', icon: highlightIcon};+export const highlightColor: EditorBasicButtonDefinition = {label: 'Highlight color', icon: highlightIcon};function colorAction(context: EditorUiContext, property: string, color: string): void {context.editor.update(() => {@@ -44,7 +44,7 @@ function colorAction(context: EditorUiContext, property: string, color: string):}export const textColorAction = (color: string, context: EditorUiContext) => colorAction(context, 'color', color);-export const highlightColorAction = (color: string, context: EditorUiContext) => colorAction(context, 'color', color);+export const highlightColorAction = (color: string, context: EditorUiContext) => colorAction(context, 'background-color', color);export const strikethrough: EditorButtonDefinition = buildFormatButton('Strikethrough', 'strikethrough', strikethroughIcon);export const superscript: EditorButtonDefinition = buildFormatButton('Superscript', 'superscript', superscriptIcon);