You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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. :-)
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.
The text was updated successfully, but these errors were encountered: