Add menu option for copying supported images in lightbox (#4614)
This commit is contained in:
parent
2373209834
commit
526ab4fe29
4 changed files with 52 additions and 15 deletions
|
@ -544,7 +544,8 @@ try {
|
|||
);
|
||||
const link = e.target.closest('a');
|
||||
const selection = Boolean(window.getSelection().toString());
|
||||
if (!editable && !selection && !link) {
|
||||
const image = e.target.closest('.module-lightbox img');
|
||||
if (!editable && !selection && !link && !image) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue