From 6bc9304870b0caa953d817b22e957e2c396f9e01 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 24 Jun 2020 15:31:30 +0200 Subject: [PATCH] fix #77 #78 --- components/Editor.vue | 16 +--------------- pages/event/_id.vue | 4 ++++ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/components/Editor.vue b/components/Editor.vue index 264830d7..68747412 100644 --- a/components/Editor.vue +++ b/components/Editor.vue @@ -101,21 +101,7 @@ export default { new Bold(), new Italic(), new Strike(), - new Underline(), - new class extends Extension { - keys () { - return { - Enter (state, dispatch, view) { - const { schema, doc, tr } = view.state - - const hard_break = schema.nodes.hard_break - const transaction = tr.replaceSelectionWith(hard_break.create()).scrollIntoView() - view.dispatch(transaction) - return true - } - } - } - }() + new Underline() ] }) }, diff --git a/pages/event/_id.vue b/pages/event/_id.vue index 7c26de48..513d9294 100644 --- a/pages/event/_id.vue +++ b/pages/event/_id.vue @@ -376,6 +376,10 @@ export default { color: #404246; font-size: 1em; font-family: inherit; + + p:empty { + min-height: 1em; + } // font-family: BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Oxygen, // Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, // sans-serif !important;