-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prefill/populate tag by default on onload #16
Comments
Given the examples page it would be like to have the textarea's text set to: @[[3:contact:Daniel Nathans]] |
A short example would be great. I tried that but didn't get that to work. |
Check out example 5 that i've added: http://daniel-zahariev.github.io/jquery-textntags/ - is this what you need? |
I tried the same but the only problem is I have modified the syntax template. So, it displays as follow, Let me know if I am doing something wrong. http://i.imgur.com/NB0mVxW.jpg init function:
|
Updating the syntax without updating the |
I have an existing @tagging setup ready and in production right now. And its backend is parsing those records, I will have to make my backend compatible so that it can handle both syntax. Do you have any alternative or else I have to do it the hard way then. :( and enable parseGroups. |
Usually i use it with a hidden form field and on form submit i populate the value of this hidden field with the raw JSON which is the text parsed (from example 1, button 'Get Tags Collection'):
So here instead of logging this you can set the value of the hidden field. |
Great. 👍 It worked. |
hey @daniel-zahariev This might sound a little n00bish but how can I bind textntags to ajax loaded contents? |
@tusharvikky are you able to bind textntags to ajax loaded contents ? |
@aseemsharma16 I dont know if that's the right way but I just called textntags again after ajax request completes. |
@tusharvikky As I making ajax request and adding the plaintext to the textarea using jquery and html div to textntags-beautifier > div but when try to change textarea text or edit something it removes previous tags. can you provide me the code example |
http://daniel-zahariev.github.io/jquery-textntags/ Ex. 5 will help you. Dont create any div. Just place textarea with appropriate value, call textntags again after that ajax request and it will create that div all by itself. |
@tusharvikky it worked thanks :) |
@tusharvikky , one more help, I am getting an issue, when the list of users comes and I want to click the username to select the user i want to tag, can you help me in that. |
textntags is perfect for that. I doubt if any bugs exists. |
Hello,
How can I automatically create @mention user in the textarea by default on load.
Regards
The text was updated successfully, but these errors were encountered: