fix issues shift enter
This commit is contained in:
parent
ddb91d2266
commit
a3b326243b
@ -1267,6 +1267,7 @@ class ChatPage extends LitElement {
|
||||
onUpdate: ()=> {
|
||||
this.shadowRoot.getElementById('_chatEditorDOM').getMessageSize(this.editor.getJSON())
|
||||
},
|
||||
|
||||
element: elementChatId,
|
||||
extensions: [
|
||||
StarterKit,
|
||||
@ -1283,7 +1284,12 @@ class ChatPage extends LitElement {
|
||||
chatTextEditor.sendMessageFunc({
|
||||
})
|
||||
return true
|
||||
}
|
||||
},
|
||||
"Shift-Enter": () =>
|
||||
this.editor.commands.first(() => [
|
||||
this.editor.commands.newlineInCode()
|
||||
]),
|
||||
|
||||
}
|
||||
}})
|
||||
]
|
||||
|
@ -296,7 +296,6 @@ class ChatTextEditor extends LitElement {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
word-break: break-all;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.ProseMirror mark {
|
||||
|
Loading…
x
Reference in New Issue
Block a user