var w = $box.outerWidth();
var h = $box.innerHeight();
- if ($origin.is(".annotation-inline-box") | $origin.is('*[x-edit-no-format]')) {
+ if ($origin.is(".annotation-inline-box")) {
w = Math.max(w, 400);
h = Math.max(h, 60);
if($('.htmlview div').offset().left + $('.htmlview div').width() > ($('.vsplitbar').offset().left - 480)){
x = 100;
}
}
+ if ($origin.is('.reference-inline-box')) {
+ w = 400;
+ h = 32;
+ y -= 32;
+ x = Math.min(
+ x,
+ $('.htmlview div').offset().left + $('.htmlview div').width() - 400
+ );
+ }
// start edition on this node
var $overlay = $('<div class="html-editarea"><button class="accept-button">Zapisz</button><button class="delete-button">Usuń</button><button class="tytul-button akap-edit-button">tytuł dzieła</button><button class="wyroznienie-button akap-edit-button">wyróżnienie</button><button class="slowo-button akap-edit-button">słowo obce</button><button class="znak-button akap-edit-button">znak spec.</button><textarea></textarea></div>').css({
xml2html({
xml: this.doc.text,
+ base: this.doc.getBase(),
success: function(element){
var htmlView = $('#html-view');
htmlView.html(element);