Commit 0ae1203f authored by Mark Harding's avatar Mark Harding

(fix): do not open image selector if not an image - closes #1938

parent 69eda7ca
No related merge requests found
Pipeline #85955205 running with stages
......@@ -247,7 +247,9 @@ export class EmbedImage {
if ($image.tagName === 'SPAN') {
$image = $image.parentNode.querySelector('img');
} else if ($image.tagName !== 'IMG') {
}
if (!$image || $image.tagName !== 'IMG') {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment