Use content editable widget to prevent not wanted html injections.
This commit is contained in:
parent
76a130ac96
commit
0314a67ee9
1 changed files with 6 additions and 0 deletions
|
@ -294,6 +294,12 @@ class ChatWindow extends App.Controller
|
|||
if event.data and event.data.callback
|
||||
event.data.callback()
|
||||
|
||||
@$('.js-customerChatInput').ce({
|
||||
mode: 'richtext'
|
||||
multiline: true
|
||||
maxlength: 40000
|
||||
})
|
||||
|
||||
close: =>
|
||||
@el.one 'transitionend', { callback: @release }, @onTransitionend
|
||||
@el.removeClass('is-open')
|
||||
|
|
Loading…
Reference in a new issue