michelson / dante2

A complete rewrite of dante editor in draft-js
https://michelson.github.io/dante2/
Other
912 stars 121 forks source link

Carousel with Dante2 #217

Open indigofa opened 4 years ago

indigofa commented 4 years ago

Hi Guys,

I have one quick question from your experience, do you think with Draftjs/Dante2 is possible to create carousel inside content, the output HTML should be for example.

<div class="carousel">
     <img src="" />
     <img src="" />
     <img src="" />
</div>

Can you provide example.

Thank you, F

michelson commented 4 years ago

Hi , it's possible to do , since the blocks are react components. I would use the image block as an starting point and add a images state (array) in which you could handle multiple images on it

I don't have time right now to provide an example, sorry

michelson commented 4 years ago

sorry, I've close this by mistake, use this issue if you want to discuss your progress on it

garmjs commented 4 years ago

I needed this as well, I will work on this weekend and see if I can make it work, will seek for help here if needed thank you