linkit icon indicating copy to clipboard operation
linkit copied to clipboard

Set custom text/html content via the htmlLink method?

Open BryceBubbles opened this issue 8 years ago • 0 comments

I'm wanting to pass custom html in as the link content when using the htmlLink() template method.

I know I could handle the link manually in the template, but it seems like a waste when the htmlLink method is set up to handle all the possible link types already.

From looking at the LinkModel it seems this isn't currently possible, but I may be missing something.

So yeah it would be nice to be able to set the "customText" value when accessing it via the template. Passing it as an "attributes" value seems like the simplest option to me, but perhaps that's not the most logical and maybe another public method for setting it would be better?

I'll probably hack a solution into the LinkModel for my current project, unless you have a simple solution that I'm missing?

Thanks

BryceBubbles avatar Jun 29 '16 01:06 BryceBubbles