I have comments system on my website and I would like to allow my users to quote other user comments.
To do that i would like to use BBCode so it would look like this:
User reply text.
For now i made it like this:
- I set initial value of multiline input as [quote]MultilineInput CustomState[/quote]
- Whenever User clicks button “reply” i change CustomState to current comment text value.
The problem is:
When user start typing something in multiline input and then click button “reply” nothing will happen because “Initial Value” is set up only once - on page load.
Can i somehow manipulate multiline input value (not initial value) with the usage of button?