Use case:
I use YourQuote app to write poetry. If you haven't seen what it does already:
title attribute tag of the img tag on their website for SEO)I hate writing on mobile, my thumbs ache.
I'm trying to build a simple desktop tool which would
// same as the 1st and 2nd points above Can draftjs editor data be rendered easily on canvas?
My background: I've never used draftjs or canvas before.
Edit:
After reading through some stuff I've found these:
But it's mostly copy pasting the dom into the canvas, there doesn't seem to be an declarative api for rendering on canvas from draftjs data (for example react-canvas), or is there?
Engineering an eGovernance Product | Hashnode Alumnus | I love pixel art
Sai Kishore Komanduri
Hi, gdad-s-river!
Technically speaking, yes we can do it!
With DraftJS, one can render custom blocks in the editor with fancy backgrounds upon which the app's users should be able to write "fancy font" text in realtime.
We can use one of the many existing solutions to convert the generated HTML from the editor, to a canvas; and from there to a required image format!
But sadly, I don't know of any existing solutions which achieve this! But it is not hard to do a DIY! Let me get you started👇
Hope this helps! Do hit me up if you run into any blocks! :)