-
Notifications
You must be signed in to change notification settings - Fork 64
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
Format mention to include html for UITextView #132
Comments
I'm not sure what exactly you're hoping to achieve but if you wanted to have specific attributes for a mention or for plain text you can use |
Hi @szweier I'm aware of the attribute options, but I don't think I can wrap with tags? I'm looking for a way to send the message with the mention wrapped in an html tag like a span tag to the server-side script. Example below
I could regex search the message on the server-side and wrap it myself. But I prefer this to be applied client-side if possible. |
I see. Rather than do a regex search I think I’d use the mention range to apply any necessary tags around the mentions when sending it to the server. Is the span tag being used to draw mentions on a web UI? I’m wondering if maybe passing the ranges to the server would be enough to generate the proper setup as well. |
Hi @szweier,
Nice work on the library!
I was curious if it's possible to wrap a mention in a span tag when inserting the mention into the text view?
I tried modifying the didSelectRowAt, but the CreateMention protocol requires a String for name. Am I able to modify the protocol to allow NSAttributedString?
Thanks for any help!
The text was updated successfully, but these errors were encountered: