use css class for inline images
This commit is contained in:
parent
8fa00f31a8
commit
a25509e1a4
4 changed files with 7 additions and 42 deletions
|
|
@ -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() : '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue