mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
Add mceToken check
This commit is contained in:
parent
ba9edcdbe1
commit
ce9f1b1309
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ tinymce.PluginManager.add('custom_image_toolbar', function(editor) {
|
|||
});
|
||||
|
||||
function isImage(elem) {
|
||||
return editor.dom.is(elem, 'img');
|
||||
return editor.dom.is(elem, 'img') && elem.dataset.mceToken;
|
||||
}
|
||||
function isMarvinJs(elem) {
|
||||
return elem.dataset.sourceType === 'marvinjs';
|
||||
|
|
Loading…
Reference in a new issue