X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/a5103645ffd3cb707677aa733bfbee3c2738f87f..c931affe5b2e863ad2752a51f8b27d45d5dbb98b:/redakcja/static/js/wiki/view_editor_wysiwyg.js?ds=inline diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index ef087a3b..34618c4f 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -43,7 +43,7 @@ return true; } - /* Convert HTML frament to plaintext */ + /* Convert HTML fragment to plaintext */ var ANNOT_FORBIDDEN = ['pt', 'pa', 'pr', 'pe', 'begin', 'end', 'theme']; function html2plainText(fragment){ @@ -97,7 +97,7 @@ range.insertNode(tag[0]); xml2html({ - xml: '' + text + ' --- ', + xml: '' + text + ' --- ', success: function(text){ var t = $(text); tag.replaceWith(t); @@ -226,10 +226,11 @@ }).appendTo($box[0].offsetParent || $box.parent()).show(); if ($origin.is('.motyw')) { - $('textarea', $overlay).autocomplete(THEMES, { + $('textarea', $overlay).autocomplete('/themes', { autoFill: true, multiple: true, - selectFirst: true + selectFirst: true, + highlight: false }); }