jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

How to Display Audio, Video, Doc., Image in the node #758

Open itsrajatcodehub opened 10 months ago

itsrajatcodehub commented 10 months ago

Hi @jerosoler, thanks for the Great Library.

I want to display the AUDIO, VIDEO, IMAGE and DOC. in the node box like this..

Video Sample: and it plays image

Image Sample: image

Document Sample: image

jerosoler commented 10 months ago

Hi,

Nodes support html. So just use html. Example image:

editor.addNode('test1', 2, 2, 50, 25, 'test1', {}, '<div><img src="Your_image.png" width="100%"></div>');