update annotation layout
This commit is contained in:
parent
d46e341448
commit
1206f0c41e
4 changed files with 50 additions and 19 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue