From 8bc653802df2371ef355ca651984bd46660332be Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Wed, 4 Oct 2023 06:22:54 -0500 Subject: [PATCH] :sparkles: Released new editor (#18422) Promoted our beta editor to the default editor. Keep an eye on (or subscribe to) https://ghost.org/changelog/ for release announcements with full details. - moved the beta editor (Lexical-based editor) to the default editor; all pages and posts will now use it - all mobiledoc (previous editor) posts will remain mobiledoc until opened in the editor at which point will be converted to Lexical on the fly and open in the new editor --- .../editor/modals/publish-flow/complete.hbs | 26 ++++----- .../admin/app/components/gh-nav-menu/main.hbs | 2 +- ghost/admin/app/router.js | 4 +- ghost/admin/app/templates/lexical-editor.hbs | 6 +-- ghost/admin/app/templates/pages-loading.hbs | 2 +- ghost/admin/app/templates/pages.hbs | 4 +- ghost/admin/app/templates/posts-loading.hbs | 2 +- ghost/admin/app/templates/posts.hbs | 4 +- ghost/admin/app/templates/settings/labs.hbs | 1 - ghost/admin/app/templates/setup/done.hbs | 2 +- ghost/admin/mirage/fixtures/configs.js | 5 +- ghost/admin/mirage/fixtures/settings.js | 1 + .../tests/acceptance/authentication-test.js | 8 ++- ghost/admin/tests/acceptance/content-test.js | 4 ++ .../acceptance/custom-post-templates-test.js | 2 +- ghost/admin/tests/acceptance/editor-test.js | 15 ++++-- .../tests/acceptance/editor/lexical-test.js | 30 +++-------- .../tests/acceptance/error-handling-test.js | 3 +- .../tests/acceptance/settings/labs-test.js | 54 ------------------- ghost/admin/tests/test-helper.js | 6 +++ ghost/core/core/shared/labs.js | 6 +-- .../admin/__snapshots__/settings.test.js.snap | 2 +- 22 files changed, 68 insertions(+), 121 deletions(-) diff --git a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs index ed3b7441ff..26f1b3d099 100644 --- a/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs +++ b/ghost/admin/app/components/editor/modals/publish-flow/complete.hbs @@ -96,22 +96,16 @@
{{else}} - {{#if post.lexical}} -- -
- {{/unless}} ++ +
{{/if}} {{/if}} {{/let}} diff --git a/ghost/admin/app/components/gh-nav-menu/main.hbs b/ghost/admin/app/components/gh-nav-menu/main.hbs index de8a3b6449..08d8a63b9c 100644 --- a/ghost/admin/app/components/gh-nav-menu/main.hbs +++ b/ghost/admin/app/components/gh-nav-menu/main.hbs @@ -43,7 +43,7 @@