From 7e9dcb2247c2adc0e753253e635d4aaf08a2b599 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Thu, 10 Apr 2014 11:04:23 +0200 Subject: [PATCH] =?utf8?q?Saut=20de=20ligne=20entre=20chaque=20=C3=A9l?= =?utf8?q?=C3=A9ment=20lors=20d'un=20upload=20multiple=20(plut=C3=B4t=20qu?= =?utf8?q?'une=20espace).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ckeditor/plugins/plinn_image/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skins/ckeditor/plugins/plinn_image/plugin.js b/skins/ckeditor/plugins/plinn_image/plugin.js index 046b7ad..695d114 100644 --- a/skins/ckeditor/plugins/plinn_image/plugin.js +++ b/skins/ckeditor/plugins/plinn_image/plugin.js @@ -121,7 +121,8 @@ PlinnCKDDUploader.prototype.handleFiles = function(files) { proxy = this.createLinkProxy(file); } this.editor.insertElement(proxy.container); - this.editor.insertText(' '); + if (files.length > 1 && i < files.length-1) { + this.editor.insertText('\n'); } this.uploadQueuePush(proxy); } }; -- 2.20.1