use css class for inline images

This commit is contained in:
j 2024-04-02 22:10:01 +02:00
commit a25509e1a4
4 changed files with 7 additions and 42 deletions

View file

@ -251,16 +251,11 @@ pandora.ui.documentInfoView = function(data, isMixed) {
if (canEdit || data.description) {
$('<div>')
.addClass("InlineImages")
.append(
Ox.EditableContent({
clickLink: pandora.clickLink,
editable: canEdit,
format: function(value) {
return value.replace(
/<img src=/g,
'<img style="float: left; max-width: 256px; max-height: 256px; margin: 0 16px 16px 0" src='
);
},
maxHeight: Infinity,
placeholder: formatLight(Ox._('No Description')),
tooltip: canEdit ? pandora.getEditTooltip() : '',