From 2068c0c1f06e6ea1850a37575d862dfc3b169591 Mon Sep 17 00:00:00 2001 From: Alex Riss <00alexx@riss.at> Date: Wed, 1 Aug 2018 14:45:08 +0200 Subject: [PATCH] small bug fixes; changed comment --- src/upload.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/upload.js b/src/upload.js index 94fe73c..db2ad17 100644 --- a/src/upload.js +++ b/src/upload.js @@ -246,8 +246,8 @@ jQuery(function () { if (!$editarea.length) { return; } - open = '{{' + fileid; - close = '}}'; + var open = '{{' + fileid; + var close = '}}'; var selection = DWgetSelection($editarea[0]); var text = selection.getText(); @@ -260,18 +260,11 @@ jQuery(function () { } if(text){ - text = '|' + text; // use text as image label + text = '|' + text; // use text as label } opts = { nosel: true }; text = open + text + close; pasteText(selection,text,opts); - - - - - - - } /**