A typographical logo of Contenido.

Link

Hyperlinks are one of the key elements of each content on the web.

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.

In order to toggle from a link to a simple text you can use removeLink utility.

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:



Made with ❤ for a better experience

MIT © 2023 - This site does not track you.