Hello all
I am working on a markdown editor and have run into a problem regarding text insertion based on buttons. What I am trying to do is make a button that will insert a preformatted string containing the url to an uploaded file.
The uploading of the file and populating the dropdown works already, but the issue arises with insertion.
As far as I can tell, there is no way to know where the insertion point is inside a text area (flashing line when typing, also called cursor, but not to be confused with mouse cursor). Due to this, text could only be appended or prepended to the entire area.
I am trying to create something extremely similar to the link button in this very comment writer.
Is there a way to insert text at the cursor based on a button press?
I have tried the Java Robot, and copy to clipboard to have the user paste in, but due to Ignition running on a debian server, it is headless and both operations fail, blaming the headless for it.
Please let me know
Thank you