From a1ee04b08f4531b880a516d97c40fb5c789414a6 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 30 Nov 2022 22:04:02 +0000 Subject: [PATCH] Wired up title->editor keyboard handling in Lexical editor closes https://github.com/TryGhost/Team/issues/2286 - use the `registerAPI` prop to get access to a basic API for focusing and inserting paragraphs - replaced commented mobiledoc based title key handling with lexical handling --- .../components/gh-koenig-editor-lexical.hbs | 1 + .../components/gh-koenig-editor-lexical.js | 53 +++++++++++-------- .../app/components/koenig-lexical-editor.js | 2 +- 3 files changed, 34 insertions(+), 22 deletions(-) diff --git a/ghost/admin/app/components/gh-koenig-editor-lexical.hbs b/ghost/admin/app/components/gh-koenig-editor-lexical.hbs index 2919f96159..7fce60dbfd 100644 --- a/ghost/admin/app/components/gh-koenig-editor-lexical.hbs +++ b/ghost/admin/app/components/gh-koenig-editor-lexical.hbs @@ -39,6 +39,7 @@ {{!-- - +