Closed bweinlich closed 3 months ago
I defined a x-texteditor like this:
<x-texteditor id="prompt-text-editor">
Now I programmatically add some text inside the text area and set the focus to it:
document.getElementById("generated-text-editor").value = text; document.getElementById("generated-text-editor").focus();
Expected behaviour: The text cursor is at the end of the text.
Actual behaviour: The text cursor is at the beginning of the text.
Unfortunately I haven't found a workaround yet. The
Could you fix this or give me a hint for a workaround please?
Thank you!
I defined a x-texteditor like this:
Now I programmatically add some text inside the text area and set the focus to it:
Expected behaviour: The text cursor is at the end of the text.
Actual behaviour: The text cursor is at the beginning of the text.
Unfortunately I haven't found a workaround yet. The
Could you fix this or give me a hint for a workaround please?
Thank you!