Use another "img" format to simplify adding of alternative texts

This commit is contained in:
Michael 2019-07-29 20:42:42 +00:00
parent 1b0f260255
commit dfee2c467c
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ var FileBrowser = {
var embed = "";
if (FileBrowser.type == "image") {
embed = "[url="+this.dataset.link+"][img]"+this.dataset.img+"[/img][/url]";
embed = "[url="+this.dataset.link+"][img="+this.dataset.img+"][/img][/url]";
}
if (FileBrowser.type=="file") {
// attachment links are "baseurl/attach/id"; we need id

View file

@ -111,7 +111,7 @@ var FileBrowser = {
var embed = "";
if (FileBrowser.type === "image") {
embed = "[url=" + this.dataset.link + "][img]" + this.dataset.img + "[/img][/url]";
embed = "[url=" + this.dataset.link + "][img=" + this.dataset.img + "][/img][/url]";
}
if (FileBrowser.type === "file") {
// attachment links are "baseurl/attach/id"; we need id