Skip to content

Insert text into FluentTextField or FluentTextArea at cursor position? #3587

Answered by dvoituron
Stephen-Lamb asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can use the same JS function. The only difference is that the input element is inside a web component (so you need to use a shadowRoot (see https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Stephen-Lamb
Comment options

Answer selected by Stephen-Lamb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants