I know to create a placeholder widget , but I don’t know how to handle click and highlight that widget , I use the widget in a function argument as a placeholder when user click the widget the widget should highlight and when start typing the widget should remove and replace with text that user type is possible to do this?
You could add a mousedown handler to the widget that causes its extent to be selected, and set up the plugin that displays these to render those that are precisely selected as highlighted.