How to get text position from mouse click?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Julius

So I want to make a word editor style app and textedit does not support text formatting. The RichTextLabel supports BB-code, but you can’t edit it. The only thing I think I need to make the RichTextLabel into a custom textedit is to be able to place the cursor where I click. I know this should be possible because the engine gets the information when you select text, right? How do I get the position in the text from cursor click, even when I have a bunch of formatting?

:bust_in_silhouette: Reply From: jgodfrey

You’re probably better off using a Textedit control.

Textedit does not let you format the text like having bold text or different fonts or other effects that RichTextLabel lets you do.

Julius | 2022-10-03 14:29