I have this textbox (yes I said textbox not textarea, xul is what I am useing). And I what to add a small bit of text in the middle of a lot of code. What I am useing is selectionStart to cut the value of the textbox in two the doing
But I am finding were this is a lot of text in the textbox this can be slow. Is there a better way of doing this that dose not reguire the value of all the text to be colected and the printed back out again?
textbox.value = firstBlock + newText + LastBlock