update annotation layout

This commit is contained in:
rlx 2019-01-24 12:52:40 +05:30
commit 1206f0c41e
4 changed files with 50 additions and 19 deletions

View file

@ -6,19 +6,28 @@ oml.ui.annotation = function(data, $iframe) {
}).addClass(
'OxSelectable'
).css({
backgroundColor: 'white',
borderBottom: '1px solid rgb(208, 208, 208)',
color: 'black',
fontFamily: 'Georgia, Palatino, DejaVu Serif, Book Antiqua, Palatino Linotype, Times New Roman, serif',
fontSize: '14px',
lineHeight: '21px',
padding: '8px'
}).html(data.text).on({
click: function(event) {
$iframe.postMessage('selectAnnotation', {
id: data.id
})
}
});
}).append(
Ox.Element().addClass('OxSelectable').css({
backgroundColor: 'white',
color: 'black',
fontFamily: 'Georgia, Palatino, DejaVu Serif, Book Antiqua, Palatino Linotype, Times New Roman, serif',
fontSize: '14px',
lineHeight: '21px',
padding: '8px'
}).html(data.text).on({
click: function(event) {
$iframe.postMessage('selectAnnotation', {
id: data.id
})
}
})
).append(
Ox.ArrayEditable({
type: 'textarea'
}).css({
height: 0
})
);
return that;
};