Use another "img" format to simplify adding of alternative texts
This commit is contained in:
parent
1b0f260255
commit
dfee2c467c
|
@ -86,7 +86,7 @@ var FileBrowser = {
|
||||||
|
|
||||||
var embed = "";
|
var embed = "";
|
||||||
if (FileBrowser.type == "image") {
|
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") {
|
if (FileBrowser.type=="file") {
|
||||||
// attachment links are "baseurl/attach/id"; we need id
|
// attachment links are "baseurl/attach/id"; we need id
|
||||||
|
|
|
@ -111,7 +111,7 @@ var FileBrowser = {
|
||||||
|
|
||||||
var embed = "";
|
var embed = "";
|
||||||
if (FileBrowser.type === "image") {
|
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") {
|
if (FileBrowser.type === "file") {
|
||||||
// attachment links are "baseurl/attach/id"; we need id
|
// attachment links are "baseurl/attach/id"; we need id
|
||||||
|
|
Loading…
Reference in a new issue