Fix MarvinJS image toolbar issues [SCI-7934] (#4998)

This commit is contained in:
artoscinote 2023-02-21 09:12:59 +01:00 committed by GitHub
parent f26efe98a1
commit 8f8865c73c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ tinymce.PluginManager.add('custom_image_toolbar', (editor) => {
editor.ui.registry.addButton('marvinjs_edit', {
icon: 'edit-block',
tooltip: I18n.t('general.edit'),
onAction: () => {
const editorIframe = $(`#${editor.id}`).next().find('.tox-edit-area iframe');
const image = editorIframe.contents().find('img[data-mce-selected="1"]');
@ -52,7 +53,6 @@ tinymce.PluginManager.add('custom_image_toolbar', (editor) => {
let toolbarGroups = toxPop.getElementsByClassName('tox-toolbar__group');
if (toolbarGroups[3]) {
toolbarGroups[2].classList.add('hidden');
toolbarGroups[3].classList.add('hidden');
}
});

View file

@ -3269,6 +3269,7 @@ en:
change: "Change"
remove: "Remove"
clone_label: "Clone"
download: "Download"
# In order to use the strings 'yes' and 'no' as keys, you need to wrap them with quotes
'yes': "Yes"
'no': "No"