diff --git a/qortal-ui-plugins/plugins/core/components/ChatPage.js b/qortal-ui-plugins/plugins/core/components/ChatPage.js index bb5faf7e..2d0e6aa5 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatPage.js +++ b/qortal-ui-plugins/plugins/core/components/ChatPage.js @@ -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() + ]), + } }}) ] diff --git a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js index 70ecfa36..e1f76dae 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js +++ b/qortal-ui-plugins/plugins/core/components/ChatTextEditor.js @@ -296,7 +296,6 @@ class ChatTextEditor extends LitElement { width: 100%; box-sizing: border-box; word-break: break-all; - display: flex; } .ProseMirror mark {