Found a bug in the sample code

Issue

I noticed a bug in the sample code for creating styled text here

Step 3 Create the main function

line 4 should be: node.styleRanges not node.styleRange

I posted this bug here with a video

I’m on macOS Mojave and XD version 13.0.12.14

Thanks

Hi @rmcgee,

Really appreciate you finding the bug and reporting it here. I’ve created an issue in our Samples Github page. https://github.com/AdobeXD/plugin-samples/issues/24. Also, I will fix the issue by EOD today.

1 Like

Awesome. Glad I could help.

Posted github PR for this

1 Like