I'm currently looking for KonvaJS to create a scrap reservation application, and I'm trying to display it as a bullet list.
I am trying to use a form of text and add html to the text to see if it will display it, but will fail.
Is it possible? If so, how? If not, in what other way should KonvaJS display fancy text, such as lists, bold ext ...
var text = new Konva.Text({ text: '<div>this is normal text\n\n <b>This is BOLD</b> </div>', fontSize: 8, fontFamily: 'Calibri', fill: '#555', width: 300, padding: 20, align: 'center', stroke: 'black', strokeEnabled: false, strokeWidth: 0 });
Conclusion: Sorry, I do not have enough reputation for posting images, but the output is:
<div>this is normal text <b>This is BOLD</b> </div>
I want this to be something like:
this is plain text
This is BOLD
Any help appreciated, thanks!
source share