Found a bug in the sample code

bug

#1

Issue

I noticed a bug in the sample code for creating styled text here
https://adobexdplatform.com/plugin-docs/tutorials/how-to-style-text/

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


#2

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.


#3

Awesome. Glad I could help.


#4

Posted github PR for this