angular-linkify icon indicating copy to clipboard operation
angular-linkify copied to clipboard

Custom linking

Open gausie opened this issue 11 years ago • 8 comments

Hey!

Would be good to have it link to your own site's username system. I'm happy to code it but wondered how you think it would be best to implement that.

gausie avatar Sep 22 '14 12:09 gausie

Do you mean something like a way to provide your own linking type function?

scottcorgan avatar Sep 26 '14 20:09 scottcorgan

Yes

gausie avatar Sep 26 '14 20:09 gausie

Can you post an example of an idea you have?

scottcorgan avatar Sep 26 '14 20:09 scottcorgan

I was thinking at the very least two attributes: the 'prefix' (defaults to @) and a 'url replacement pattern' (perhaps substituting \1 for the matched username or something) On 26 Sep 2014 21:03, "Scott Corgan" [email protected] wrote:

Can you post an example of an idea you have?

— Reply to this email directly or view it on GitHub https://github.com/scottcorgan/angular-linkify/issues/13#issuecomment-57013155 .

gausie avatar Sep 26 '14 20:09 gausie

This would also be awesome to have as a feature. I guess for now I'll have to alter the code.

dragonfire1119 avatar Oct 06 '14 19:10 dragonfire1119

@dragonfire1119 how have you altered the code. I'm interested in your ideas.

scottcorgan avatar Oct 07 '14 19:10 scottcorgan

Any suggestions on how to implement this?

scottcorgan avatar Nov 26 '14 16:11 scottcorgan

^^ https://github.com/scottcorgan/angular-linkify/issues/21 - the linkifyjs plugin has this covered

marksyzm avatar Jan 31 '16 21:01 marksyzm