'cancel' => 'Cancel',
'save' => 'Save',
'close' => 'Close',
+ 'apply' => 'Apply',
'undo' => 'Undo',
'redo' => 'Redo',
'left' => 'Left',
'url' => 'URL',
'text_to_display' => 'Text to display',
'title' => 'Title',
+ 'browse_links' => 'Browse links',
'open_link' => 'Open link',
'open_link_in' => 'Open link in...',
'open_link_current' => 'Current window',
+++ /dev/null
-# Lexical based editor todo
-
-## In progress
-
-//
-
-## Main Todo
-
-//
-
-## Secondary Todo
-
-- Deep check of translation coverage
-
-## Bugs
-
-//
\ No newline at end of file
export const source: EditorButtonDefinition = {
- label: 'Source',
+ label: 'Source code',
icon: sourceIcon,
async action(context: EditorUiContext) {
const modal = context.manager.createModal('source');
};
export const media: EditorButtonDefinition = {
- label: 'Insert/edit Media',
+ label: 'Insert/edit media',
icon: mediaIcon,
action(context: EditorUiContext) {
context.editor.getEditorState().read(() => {
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);
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);