- 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());
- $('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
+ });
+ })