From 83a10a5e9aec014f3a9b9ddc8dcb3ed3c08a0d9f Mon Sep 17 00:00:00 2001 From: Dario Milicic Date: Wed, 28 Jan 2015 21:37:11 +0100 Subject: [PATCH] Dragged and dropped images should now also link to themselves. --- scripts/ckeditor/plugins/dndfiles/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ckeditor/plugins/dndfiles/plugin.js b/scripts/ckeditor/plugins/dndfiles/plugin.js index 5a230e59..7a6080a0 100755 --- a/scripts/ckeditor/plugins/dndfiles/plugin.js +++ b/scripts/ckeditor/plugins/dndfiles/plugin.js @@ -141,7 +141,7 @@ CKEDITOR.plugins.add( 'dndfiles', { return; if(src.indexOf(".png") >= 0 || src.indexOf(".jpg") >= 0 || src.indexOf(".jpeg") >= 0) { // This is an image - html += ''; + html += '' + ''; } else { // this is not an image // Server appends 14 characters in front of the name so we should remove them var server_suffix = 14;