Create a Rich Text Editor Using the HTML Component

I was getting errors trying to use this tutorial as well. Then I realized they didn’t have an “#” in front of myHtmlComponent. Here is the correct code.

$w.onReady( function () {
$w(“#myHtmlComponent”).onMessage( (event) => {
$w(‘#myText’).html = event.data;
} );
} );