Texteditor.Contents is slow, but there is a workaround
Posted: Thu Feb 20, 2025 9:55 pm
Inserting a string to a texteditor gadget takes a veery long time unless it is just a few characters.
If we can sacrifice the clipboard content we could do an instant string to texteditor gadget operation like this:
Even very large string is shown instantly in the gadget, but maybe it would be a bit better to has a similarly fast "contents" function too. 
Code: Select all
Mui.Set("editor", "contents", string$, "haschanged", False)Code: Select all
SetClipboard(#CLIPBOARD_TEXT,string$)
Mui.DoMethod("editor", "paste")
ClearClipboard()