Merge pull request #7449 from annando/img-upload
Use another "img" format to simplify adding of alternative texts
This commit is contained in:
commit
4b60e89c07
|
@ -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