• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to using function tag user in redactor?

Chris D

XenForo developer
Staff member
#2
The auto complete functionality will just work without any configuration. You can disable it by adding this to the $editorOptions as you set the editor up in your view:
PHP:
'extraClass' => 'NoAutoComplete',
As for the process of turning @tags to a username and alerting users, just look at the existing code:

XenForo_DataWriter_DiscussionMessage_Post::_preSave();

...is a good place to start
 

truonglv

Formerly Nobita.Kun
#3
The auto complete functionality will just work without any configuration. You can disable it by adding this to the $editorOptions as you set the editor up in your view:
PHP:
'extraClass' => 'NoAutoComplete',
As for the process of turning @tags to a username and alerting users, just look at the existing code:

XenForo_DataWriter_DiscussionMessage_Post::_preSave();

...is a good place to start
Yep! I've added this code a long. But when I try to typing @user_name its don't show pop-up username :oops: