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
    0

    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
    0

    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
    0

    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=\"http://www.blueassistance.it/\" target=\"_blank\">www.blueassistance.it</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 blueassistance.it clicca <a href=\"https://realegroup.ice.ibmcloud.com/authsvc/mtfim/sps/authsvc?PolicyId=urn:ibm:security:authentication:asf:basicldapuser&amp;identity_source_id=5fc3fdfa-a868-4108-97c0-42a325adae31&amp;Target=https%3A%2F%2Frealegroup.ice.ibmcloud.com%2Fsaml%2Fsps%2Fappauth%3FidSources%3D5fc3fdfa-a868-4108-97c0-42a325adae31\" title=\"blueassistance\" data-anchor=\"?PolicyId=urn:ibm:security:authentication:asf:basicldapuser&amp;identity_source_id=5fc3fdfa-a868-4108-97c0-42a325adae31&amp;Target=https%3A%2F%2Frealegroup.ice.ibmcloud.com%2Fsaml%2Fsps%2Fappauth%3FidSources%3D5fc3fdfa-a868-4108-97c0-42a325adae31\">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:

Draft