Merge pull request #7449 from annando/img-upload

Use another "img" format to simplify adding of alternative texts
This commit is contained in:
Hypolite Petovan 2019-07-29 17:05:56 -04:00 committed by GitHub
commit 4b60e89c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 256 additions and 256 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