style images in summary and descriptions
This commit is contained in:
parent
865cbb2490
commit
c04226add2
1 changed files with 12 additions and 0 deletions
|
@ -272,6 +272,12 @@ pandora.ui.infoView = function(data) {
|
||||||
Ox.EditableContent({
|
Ox.EditableContent({
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
editable: canEdit,
|
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'),
|
placeholder: formatLight('No Summary'),
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
|
@ -727,6 +733,12 @@ pandora.ui.infoView = function(data) {
|
||||||
Ox.EditableContent({
|
Ox.EditableContent({
|
||||||
clickLink: pandora.clickLink,
|
clickLink: pandora.clickLink,
|
||||||
editable: canEdit,
|
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'),
|
placeholder: formatLight('No Description'),
|
||||||
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
tooltip: canEdit ? pandora.getEditTooltip() : '',
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
|
|
Loading…
Reference in a new issue