diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 82a020e245..21b866845b 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -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; } diff --git a/view/js/linkPreview.js b/view/js/linkPreview.js index 28c8df9b67..469844199b 100644 --- a/view/js/linkPreview.js +++ b/view/js/linkPreview.js @@ -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); };