Open leocaseiro opened 9 years ago
@leocaseiro look at https://www.npmjs.com/package/text-autolinker
Thank you for your reply @ryaz, but I'm actually not using Twitter. I have my own list of users with our own Profile page and I'd like to link their name with our own page. I'm not sure if the text-autolinker works well outside twitter, but I'll give a try. Thanks
@leocaseiro Did you find answer to your question? This link does mention "converting the selected item to markup"
There's a directive/plugin called "Hashtagify" that helped out with this. It wasn't the best, but it got the job done as long as you have control over your full application.
I've there's a "builtin" way to do this with ment.io, I'd be happy to learn about that or maybe help with writing a plugin for that.
Linking similar issue raised earlier: https://github.com/jeff-collins/ment.io/issues/25
@leocaseiro You can do something like this: PLUNKER
NOTE: Most of the code is from the repository demo itself.
Sorry, I didn't have time to have a look. My issue is from October last year, I'm not sure if I gave up or tried something else...I'll find and post it here.
I'd like to build a filter or a directive to bind a div/p(wherever) with my content and than, I'd like to replace every key into a link, similar twitter tags and users.
I have an idea, but I was wondering if someone can give me a better solution.
The idea is replace from:
The idea is replace to:
For example: