mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Fix MarvinJS image toolbar issues [SCI-7934] (#4998)
This commit is contained in:
parent
f26efe98a1
commit
8f8865c73c
|
@ -21,6 +21,7 @@ tinymce.PluginManager.add('custom_image_toolbar', (editor) => {
|
||||||
|
|
||||||
editor.ui.registry.addButton('marvinjs_edit', {
|
editor.ui.registry.addButton('marvinjs_edit', {
|
||||||
icon: 'edit-block',
|
icon: 'edit-block',
|
||||||
|
tooltip: I18n.t('general.edit'),
|
||||||
onAction: () => {
|
onAction: () => {
|
||||||
const editorIframe = $(`#${editor.id}`).next().find('.tox-edit-area iframe');
|
const editorIframe = $(`#${editor.id}`).next().find('.tox-edit-area iframe');
|
||||||
const image = editorIframe.contents().find('img[data-mce-selected="1"]');
|
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');
|
let toolbarGroups = toxPop.getElementsByClassName('tox-toolbar__group');
|
||||||
if (toolbarGroups[3]) {
|
if (toolbarGroups[3]) {
|
||||||
toolbarGroups[2].classList.add('hidden');
|
|
||||||
toolbarGroups[3].classList.add('hidden');
|
toolbarGroups[3].classList.add('hidden');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -3269,6 +3269,7 @@ en:
|
||||||
change: "Change"
|
change: "Change"
|
||||||
remove: "Remove"
|
remove: "Remove"
|
||||||
clone_label: "Clone"
|
clone_label: "Clone"
|
||||||
|
download: "Download"
|
||||||
# In order to use the strings 'yes' and 'no' as keys, you need to wrap them with quotes
|
# In order to use the strings 'yes' and 'no' as keys, you need to wrap them with quotes
|
||||||
'yes': "Yes"
|
'yes': "Yes"
|
||||||
'no': "No"
|
'no': "No"
|
||||||
|
|
Loading…
Reference in a new issue