Lightbox: A number of tweaks
This commit is contained in:
parent
82f1920ce2
commit
c6278aa173
5 changed files with 85 additions and 47 deletions
|
@ -473,7 +473,7 @@ try {
|
|||
);
|
||||
const link = e.target.closest('a');
|
||||
const selection = Boolean(window.getSelection().toString());
|
||||
const image = e.target.closest('.module-lightbox img');
|
||||
const image = e.target.closest('.Lightbox img');
|
||||
if (!editable && !selection && !link && !image) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue