Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Biagio Paruolo 1599 posts 1830 karma points c-trib
    May 21, 2024 @ 06:33
    Biagio Paruolo

    Content Delivery API and RichText with image

    I create a document type with a RichText field. Into the richtext there are some images. How to render the images plus html in the remote NextJs application?

  • Steffen Hornbæk Nielsen 51 posts 162 karma points
    May 22, 2024 @ 07:47
    Steffen Hornbæk Nielsen

    Hi Biagio,

    What does the HTML string look like in your case?

  • Biagio Paruolo 1599 posts 1830 karma points c-trib
    28 days ago
    Biagio Paruolo

    I get the html from RichText like:

     "markup": "<p style=\"font-weight: 400;\"><strong><em>Rimborso spese sanitarie</em></strong></p>\n<p style=\"font-weight: 400;\"><em>Per il rimborso delle spese sanitarie è sufficiente registrarsi al portale dei sinistri al seguente indirizzo&nbsp;<a rel=\"noopener\" href=\"\" target=\"_blank\"></a>&nbsp;cliccando sul pulsante Registrati per l'Area Riservata.</em></p>\n<p style=\"font-weight: 400;\"><em>La&nbsp;<strong>Username</strong>&nbsp;è l'indirizzo email comunicato dall'Azienda&nbsp;</em></p>\n<p style=\"font-weight: 400;\"><em>E' disponibile tra i Documenti la:</em></p>\n<ul style=\"font-weight: 400;\">\n<li><em>Guida alla Registrazione e la&nbsp;</em></li>\n<li><em>Guida per l'Apertura di una pratica di rimborso</em></li>\n</ul>\n<p style=\"font-weight: 400;\"><em>È sempre possibile contattare direttamente la&nbsp;<strong>Centrale Salute</strong>:</em></p>\n<ul style=\"font-weight: 400;\">\n<li><em>dall’ITALIA Numero Verde 800 042 042</em></li>\n<li><em>dall’ESTERO +39 011 742 57 33</em></li>\n</ul>\n<p>&nbsp;</p>\n<p><em>Se sei <strong>già Registrato</strong> al sito clicca <a href=\";identity_source_id=5fc3fdfa-a868-4108-97c0-42a325adae31&amp;\" title=\"blueassistance\" data-anchor=\"?PolicyId=urn:ibm:security:authentication:asf:basicldapuser&amp;identity_source_id=5fc3fdfa-a868-4108-97c0-42a325adae31&amp;\">qui</a></em></p>",

    I sanityze it into NextJS...but the URL of images or other link are relative to Umbraco server installation and not with FULL Url.

Please Sign in or register to post replies

Write your reply to: