Merge pull request #14235 from annando/img-alt

Improve adding of alt descriptions when linking images
This commit is contained in:
Hypolite Petovan 2024-06-15 10:20:38 -04:00 committed by GitHub
commit 9dc4e611a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -2646,7 +2646,7 @@ class BBCode
$bbcode = "\n" . '[audio]' . $url . '[/audio]' . "\n";
break;
default:
$bbcode = "\n" . '[img]' . $url . '[/img]' . "\n";
$bbcode = "\n" . '[img=' . $url . '][/img]' . "\n";
break;
}

View file

@ -200,7 +200,7 @@
if (!isExtern) {
return;
}
var bbcode = '\n[img]' + data.url + '[/img]\n';
var bbcode = '\n[img=' + data.url + '][/img]\n';
addeditortext(bbcode);
};