WebTextField Selection

How is possible to get the text that user actually selected in a WebTextField ?

Something like SelStart and SelLength.

Thank you

You might be able to get something with Window.getSelection() if there’s nothing built in for Xojo Web.

It’s also very easy to get the selected text in HTML Edit for Web with the selText property.