From a3b326243b54240e2c70bc060f5fb48d20f10f17 Mon Sep 17 00:00:00 2001 From: Phillip Date: Thu, 12 Jan 2023 21:31:41 -0500 Subject: [PATCH] fix issues shift enter --- qortal-ui-plugins/plugins/core/components/ChatPage.js | 8 +++++++- .../plugins/core/components/ChatTextEditor.js | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) 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 {