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