From a9ddc346210a45020293e805dae18f2be4885287 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 13 Feb 2025 22:18:10 +0100 Subject: [PATCH 1/2] fix(vite): allow hostnames used for hmr via docker-dev Signed-off-by: Max --- vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 0a568b1a2f9..32fa1376c20 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -77,6 +77,9 @@ const config = createAppConfig({ } }, }, + server: { + allowedHosts: ['host.docker.internal', 'localhost', 'nextcloud.local'], + }, }, }) From 654f290c0630f07b04e3ef3d6ff79ab510e22ad7 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 24 Feb 2025 13:49:37 +0100 Subject: [PATCH 2/2] fix(smart-picker): Add content on next line Fixes #6871 Signed-off-by: Max --- src/plugins/currentLineMenu.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/currentLineMenu.js b/src/plugins/currentLineMenu.js index 65cf1d61857..f89daa93b5c 100644 --- a/src/plugins/currentLineMenu.js +++ b/src/plugins/currentLineMenu.js @@ -157,12 +157,12 @@ function menuForCurrentParagraph(editor) { const { selection } = editor.state const { textContent } = selection.$anchor.parent const eol = selection.$anchor.end() - const contentToInsert = textContent.match(/(^| )$/) ? '/' : ' /' - editor.chain() - .focus() - .setTextSelection(eol) - .insertContent(contentToInsert) - .run() + const chain = editor.chain().focus().setTextSelection(eol) + if (textContent.trim() === '') { + chain.insertContent('/').run() + } else { + chain.splitBlock().insertContent('/').run() + } }) return menu.$el }