-
Notifications
You must be signed in to change notification settings - Fork 2
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
what is the best solution to indentity diffirent id type in value ? #8
Comments
Good point. It'd a bad example. Add something to your value field so you can identify which is which. I usually have the value use an array format such as {type:'person',value:'pirate3'} instead of just 'pirate3'. |
yeah I think I tried that solution
but when I get date-type of element it return undefined. this is what I tried to change in the jquery.rich_textarea.js (line 5261)
Maybe I did it wrong ? |
For example try changing the demo, instead of changing the source itself: { label: 'tag1', value: { value: {type: 'tag',value:'tag1'}, content: 'Tag1' } }, |
ok I will try it. thank you :D |
ok now I struggle to get data value with this object { label: 'tag1', value: { value: {type: 'tag',value:'tag1'}, content: 'Tag1' } } the $( elem ).attr( 'data-value' ) return a string "[Object Object]". |
When I got the value like this
How can I tell which id belongs to user, which belongs to tag.
thank you
The text was updated successfully, but these errors were encountered: