mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Lexical: Ran a deeper check on translation use
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
# Lexical based editor todo
|
||||
|
||||
## In progress
|
||||
|
||||
//
|
||||
|
||||
## Main Todo
|
||||
|
||||
//
|
||||
|
||||
## Secondary Todo
|
||||
|
||||
- Deep check of translation coverage
|
||||
|
||||
## Bugs
|
||||
|
||||
//
|
@@ -57,7 +57,7 @@ export const redo: EditorButtonDefinition = {
|
||||
|
||||
|
||||
export const source: EditorButtonDefinition = {
|
||||
label: 'Source',
|
||||
label: 'Source code',
|
||||
icon: sourceIcon,
|
||||
async action(context: EditorUiContext) {
|
||||
const modal = context.manager.createModal('source');
|
||||
|
@@ -165,7 +165,7 @@ export const diagramManager: EditorButtonDefinition = {
|
||||
};
|
||||
|
||||
export const media: EditorButtonDefinition = {
|
||||
label: 'Insert/edit Media',
|
||||
label: 'Insert/edit media',
|
||||
icon: mediaIcon,
|
||||
action(context: EditorUiContext) {
|
||||
context.editor.getEditorState().read(() => {
|
||||
|
@@ -63,7 +63,7 @@ export class EditorColorPicker extends EditorUiElement {
|
||||
const removeButton = el('div', {
|
||||
class: 'editor-color-select-option',
|
||||
'data-color': '',
|
||||
title: 'Clear color',
|
||||
title: this.getContext().translate('Remove color'),
|
||||
}, []);
|
||||
removeButton.innerHTML = removeIcon;
|
||||
colorOptions.push(removeButton);
|
||||
@@ -72,7 +72,7 @@ export class EditorColorPicker extends EditorUiElement {
|
||||
class: 'editor-color-select-option',
|
||||
for: `color-select-${id}`,
|
||||
'data-color': '',
|
||||
title: 'Custom color',
|
||||
title: this.getContext().translate('Custom color'),
|
||||
}, []);
|
||||
selectButton.innerHTML = selectIcon;
|
||||
colorOptions.push(selectButton);
|
||||
|
Reference in New Issue
Block a user