You can’t directly (unless hacking the Xojo Javascript framework).
You will have to create a custom WebControl that encapsulate the [YUI HTML Editor] in order to receive an event allowing you to forward your Javascript value(s) to Xojo variable(s).
Check the WebControlSDK.pdf in the [Extras/WebSDK] folder of your Xojo installation folder.
Really, I think the best way today is to create a custom WebControl that encapsulate the Javascript widget, as the Xojo Javascript framework is evolving and the hack may not work from one Xojo versions to the other.