- var ANNOT_FORBIDDEN = ['pt', 'pa', 'pr', 'pe', 'begin', 'end', 'theme'];
+ var ANNOT_FORBIDDEN = ['pt', 'pa', 'pr', 'pe', 'begin', 'end', 'motyw'];
// BUG #273 - selected text can contain themes, which should be omitted from
// defining term
var text = html2plainText(range.cloneContents());
// BUG #273 - selected text can contain themes, which should be omitted from
// defining term
var text = html2plainText(range.cloneContents());
- var x = $box[0].offsetLeft;
- var y = $box[0].offsetTop;
+ /* check sidebar width and display textarea on the right but avoiding interfering with gallery */
+ var x = $(document).width() - $("#sidebar").width() - 576 - 100; // and little margin here: 100px
+ var y = $origin.offset().top + $("#html-view").scrollTop();
+
+
- $('textarea', $overlay).autocomplete('/themes', {
- autoFill: true,
- multiple: true,
- selectFirst: true,
- highlight: false
- });
+ withThemes(function(canonThemes){
+ $('textarea', $overlay).autocomplete(canonThemes, {
+ autoFill: true,
+ multiple: true,
+ selectFirst: true,
+ highlight: false
+ });
+ })