# autocompletion of pings

+ 2 like - 0 dislike
486 views

It would be nice if the names of pinged users would be auto-completed upon typing @ and the first few letters., with preference given to names that appear already on the calling page. Countless times I had to explicitly copy or write out again some names, which is error prone if the spelling is unfamiliar or the user name contains a blank.

This is almost impossible to do for me within the editor, as the editor is a big external application (CKEDITOR), slightly adapted for PO. What I could try to implement is a text field with some sort of autocompletion below the editor, with a button "Copy to clipboard". A direct insertion into the editor's text block would also be quite complicated to realize.

@polarkernel: Do you know how it is done on SE? It works there nicely.

SE's is a simple textbox, while we have a full-fledged editor (or you might call it a simple word processor) for comments.

+ 3 like - 0 dislike

I am not able to fully resolve this requirement. However, I have implemented a solution that should simplify the construction of a user ping. Below the editor you find an input field dedicated to insert a user ping. Type there some characters of the desired username and select the user, when it gets displayed below this field. On selection, the ping will immediately get inserted into the editor's text at the last cursor position.

The solution is not yet extensively tested, please send me feedback in case of issues.

answered Jul 18, 2015 by (0 points)

Thanks! I see the input field, but I can't type into it. Also, it might be good to prepend the field by a text such as ' insert ping'.

@ArnoldNeumaier Thank you. Bug fixed, should work now.

@polarkernel: Yes, it works now nicely. Thanks a lot!

 Please use answers only to (at least partly) answer questions. To comment, discuss, or ask for clarification, leave a comment instead. To mask links under text, please type your text, highlight it, and click the "link" button. You can then enter your link URL. Please consult the FAQ for as to how to format your post. This is the answer box; if you want to write a comment instead, please use the 'add comment' button. Live preview (may slow down editor)   Preview Your name to display (optional): Email me at this address if my answer is selected or commented on: Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: If you are a human please identify the position of the character covered by the symbol $\varnothing$ in the following word:p$\hbar$ysicsOverflo$\varnothing$Then drag the red bullet below over the corresponding character of our banner. When you drop it there, the bullet changes to green (on slow internet connections after a few seconds). To avoid this verification in future, please log in or register.