Link
Hyperlinks are one of the key elements of each content on the web.
addLink #
You can convert a text to a link using the addLink
utility. In order to make
the link visible in your content you need to add relevant decorator for that,
you'll see an example of adding and removing links at the bottom of this page.
removeLink #
In order to toggle from a link to a simple text you can use removeLink
utility.
Link display #
To make your link visible in your content, you need to define a decorator for that.
You can define your custom link component and use the findEntitiesOfLink
utility
as the decorator strategy. Check out the example below.
Example #
An example of handling links in contenido
: