Add mceToken check

This commit is contained in:
Urban Rotnik 2019-10-22 08:28:35 +02:00
parent ba9edcdbe1
commit ce9f1b1309

View file

@ -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';