X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7d90e33be7ee1de4f79216b33ce9e28794685dc4..d04a06a9b7966b84258a9a8d2ae06148eedb8264:/redakcja/static/js/wiki/view_editor_wysiwyg.js diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index d8704fde..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){ @@ -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 }); }