img tag src attribute in node html content can't get relative img path in ejs-diagram component in complex hierarchical tree in syncfusion.

Hi,

I am trying to add img tag in node htmlcontent for nodes in ejs-diagram, but img src attribute is not able to identify the relative path. So how can we add image in node content in ejs-diagram.

Attaching the folder for the same.


Attachment: imgtagforum_4bfa8e0b.zip

1 Reply

VG Vivisa Ganesan Syncfusion Team April 23, 2024 10:54 AM UTC

Hi,

We have analyzed the sample you provided and identified a couple of issues: firstly, the path isn't referenced correctly, and secondly, there's no image in the assets folder that you've referred to. We've made the necessary modifications to the sample and attached it. Please take a look at the updated version below.



Regards,

Vivisa


Attachment: imgtagforum_2260b234.zip

Loader.
Up arrow icon