Hi, I cannot get the suggestion list to display. I have imported the javascript and stylesheet files.
It seems that the trigger character should be removed in getCurrentWords().
if (autocomplete_data.trigger == '') {
if (word.length >= autocomplete_data.minLength) {
retWord = word;
}
} else {
if (word.length > 0 && word.charAt(0).toString() == autocomplete_data.trigger) {
retWord = word;
}
}
Hi, I cannot get the suggestion list to display. I have imported the javascript and stylesheet files.
It seems that the trigger character should be removed in getCurrentWords(). if (autocomplete_data.trigger == '') { if (word.length >= autocomplete_data.minLength) { retWord = word; } } else { if (word.length > 0 && word.charAt(0).toString() == autocomplete_data.trigger) { retWord = word; } }
Below is my config:
$('.tinymce').tinymce({ mode : "textareas", theme : "advanced", plugins : "autolink,lists,advimage,inlinepopups,paste,fullscreen,noneditable,autocomplete", theme_advanced_buttons1 : "fontselect,fontsizeselect,formatselect,bold,italic,underline,strikethrough,bullist,numlist,outdent,indent,justifyleft,justifycenter,justifyright,justifyfull,forecolor,backcolor,link,code,pasteword,image,fullscreen", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "none", autocomplete_options: "john,jane,william" });