We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d818ae8 + a282c02 commit eb0726aCopy full SHA for eb0726a
vanilla/library/Vanilla/Formatting/Quill/Blots/Embeds/ExternalBlot.php
@@ -121,7 +121,11 @@ public function renderQuote(): string {
121
$formattedSize = Gdn_Upload::formatFileSize($size,2);
122
return "<p><a href=\"$sanitizedUrl\">$fileName ($formattedSize)</a></p>";
123
}
124
-
+ } else if($embedType == 'image'){
125
+ $fileName = $data['name'] ?? "";
126
+ $height = $data['height'] ? "height=\"".$data['height']."\"":"";
127
+ $width = $data['width'] ? "width=\"".$data['width']."\"":"";
128
+ return "<p><a href=\"$sanitizedUrl\"><img $height $width src=\"$sanitizedUrl\" alt=\"$fileName\"></a></p>";
129
130
131
return "<p><a href=\"$sanitizedUrl\">$sanitizedUrl</a></p>";
0 commit comments