mentions
mentions copied to clipboard
autocomplete for usernames is broken
i am not able to get the autocomplete dropdown box to render in any of my sites (1.12.x). if i type a @ symbol followed by some characters i see no dropdown. i have tested with my theme disabled and with/without tinyMCE and the result is the same in all cases.
i have started looking at the code here and found that in autocomplete.js:
a) the timeout of 500ms that is present to delay the check to find out if tinyMCE is instantiated is too short on my machine. if i increase the delay to 1000ms then the tinyMCE code is run, but if i leave it as 500ms then it is not run.
b) when the tinyMCE code is run, the following line generates an error in the console that says that onKeyUp is not defined:
tinymce.editors[i].onKeyUp.add(function (ed, e) {
does anyone know if this plugin has been tested with tinyMCE 4+ ?
i have now upgraded mentions in my fork of it to be compatible with tinyMCE 4+ and elgg 2.1.2. the remaining issues are not related to tinyMCE.
Can you make a PR?
ok, done