Skip to content

Commit

Permalink
small bug fixes; changed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexriss committed Aug 1, 2018
1 parent 66782ea commit 2068c0c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/upload.js
Expand Up @@ -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();
Expand All @@ -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);







}

/**
Expand Down

0 comments on commit 2068c0c

Please sign in to comment.