Is it possible to enable the multiline support / text wrap of the textbox (_wc-shellinput_)? If so is it possible out-of-the box, for example via a setting / WebChat parameter?
After a short research I found following issue, however it seems that it has been abandoned long time ago.
I have tried to replace the input itself with textarea element (after the initialization and rendering of the chat), however even though I achieved the multiline, it was no longer possible to send the messages anymore.
I just did this by doing a custom build of BotChat.js. You just need to change Shell.tsx to use a textarea on line 155 and then change the events to be types of React.KeyboardEvent<HtmlTextAreaElement>. Then you build it and use that instead of linking to the cdn's BotChat.js.
Stay tuned. It is coming in Web Chat v4.
Thanks both of you for the responses!
In the meantime I have managed to workaround it by hiding the original wc-shellinput and rendering my own TextArea element in its place. Next up, I have hooked up my own event listener on the send button which will move the text from my own TextArea into the original wc-shellinput React component. Not the pretties approach, but will do for now. :-)
Closing my question.
Most helpful comment
I just did this by doing a custom build of BotChat.js. You just need to change Shell.tsx to use a textarea on line 155 and then change the events to be types of
React.KeyboardEvent<HtmlTextAreaElement>. Then you build it and use that instead of linking to the cdn's BotChat.js.