Improve adding of alt descriptions when linking images

This commit is contained in:
Michael 2024-06-15 12:30:00 +00:00
parent 86f238f379
commit a87e0ad63c
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);
};