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', {
|
||||
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');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue