wrap quote in one more div
This commit is contained in:
parent
031db4c888
commit
b467b93fb6
2 changed files with 12 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
||||||
.OMLQuote {
|
.OMLQuote {
|
||||||
|
padding: 8px;
|
||||||
color: rgb(0, 0, 0);
|
color: rgb(0, 0, 0);
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
font-family: Georgia, Palatino, DejaVu Serif, Book Antiqua, Palatino Linotype, Times New Roman, serif;
|
font-family: Georgia, Palatino, DejaVu Serif, Book Antiqua, Palatino Linotype, Times New Roman, serif;
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
oml.ui.annotation = function(annotation, $iframe) {
|
oml.ui.annotation = function(annotation, $iframe) {
|
||||||
var $quote = Ox.Element().addClass('OxSelectable OMLQuote').css({
|
var $quote = Ox.Element()
|
||||||
padding: '8px'
|
.addClass('OxSelectable OMLQuote')
|
||||||
}).html(Ox.encodeHTMLEntities(annotation.text).replace(/\n/g, '<br/>')).on({
|
.append(
|
||||||
|
Ox.Element().html(Ox.encodeHTMLEntities(annotation.text).replace(/\n/g, '<br/>'))
|
||||||
|
).on({
|
||||||
click: function(event) {
|
click: function(event) {
|
||||||
that.select()
|
that.select()
|
||||||
$iframe.postMessage('selectAnnotation', {
|
$iframe.postMessage('selectAnnotation', {
|
||||||
|
|
Loading…
Reference in a new issue