style images in summary and descriptions

This commit is contained in:
j 2013-03-13 08:53:42 +00:00
parent 865cbb2490
commit c04226add2

View file

@ -272,6 +272,12 @@ pandora.ui.infoView = function(data) {
Ox.EditableContent({
clickLink: pandora.clickLink,
editable: canEdit,
format: function(value) {
return value.replace(
/<img src=/g,
'<img style="max-width: 256px; max-height: 256px; margin: 0 16px 16px 0;float: left;" src='
);
},
placeholder: formatLight('No Summary'),
tooltip: canEdit ? pandora.getEditTooltip() : '',
type: 'textarea',
@ -727,6 +733,12 @@ pandora.ui.infoView = function(data) {
Ox.EditableContent({
clickLink: pandora.clickLink,
editable: canEdit,
format: function(value) {
return value.replace(
/<img src=/g,
'<img style="max-width: 256px; max-height: 256px; margin: 0 16px 16px 0;float: left;" src='
);
},
placeholder: formatLight('No Description'),
tooltip: canEdit ? pandora.getEditTooltip() : '',
type: 'textarea',