From: Benoît Pin Date: Thu, 10 Apr 2014 09:04:23 +0000 (+0200) Subject: Saut de ligne entre chaque élément lors d'un upload multiple (plutôt qu'une espace). X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/commitdiff_plain/7e9dcb2247c2adc0e753253e635d4aaf08a2b599?ds=sidebyside;hp=35d32f35f43e33f068b39a4c7daf9eb16773cbe7 Saut de ligne entre chaque élément lors d'un upload multiple (plutôt qu'une espace). --- 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); } };