mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Dragged and dropped images should now also link to themselves.
This commit is contained in:
parent
6754eb21b3
commit
83a10a5e9a
@ -141,7 +141,7 @@ CKEDITOR.plugins.add( 'dndfiles', {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if(src.indexOf(".png") >= 0 || src.indexOf(".jpg") >= 0 || src.indexOf(".jpeg") >= 0) { // This is an image
|
if(src.indexOf(".png") >= 0 || src.indexOf(".jpg") >= 0 || src.indexOf(".jpeg") >= 0) { // This is an image
|
||||||
html += '<img src = "' + src + '">';
|
html += '<a href = ' + src + '><img src = "' + src + '">' + '</a>';
|
||||||
} else { // this is not an image
|
} else { // this is not an image
|
||||||
// Server appends 14 characters in front of the name so we should remove them
|
// Server appends 14 characters in front of the name so we should remove them
|
||||||
var server_suffix = 14;
|
var server_suffix = 14;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user