From 4101ed0c5ef310faa71752940162bc8136072897 Mon Sep 17 00:00:00 2001 From: Charles Teague Date: Fri, 15 Sep 2023 17:14:04 -0400 Subject: [PATCH] default enable ligthbox for manuscripts --- src/config/constants.ts | 1 + src/project/types/manuscript/manuscript.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/config/constants.ts b/src/config/constants.ts index af21c96762..6638519042 100644 --- a/src/config/constants.ts +++ b/src/config/constants.ts @@ -53,6 +53,7 @@ export const kNotebookViewStyle = "notebook-view-style"; export const kNotebookPreserveCells = "notebook-preserve-cells"; export const kClearCellOptions = "clear-cell-options"; export const kDownloadUrl = "download-url"; +export const kLightbox = "lightbox"; export const kNotebookPreviewOptions = "notebook-preview-options"; export const kNotebookPreviewOptionBack = "back"; diff --git a/src/project/types/manuscript/manuscript.ts b/src/project/types/manuscript/manuscript.ts index 5fc07f11d7..5b7ce7c08d 100644 --- a/src/project/types/manuscript/manuscript.ts +++ b/src/project/types/manuscript/manuscript.ts @@ -34,6 +34,7 @@ import { kKeepHidden, kKeepTex, kLanguageDefaults, + kLightbox, kManuscriptMecaBundle, kNotebookLinks, kNotebookPreserveCells, @@ -299,6 +300,9 @@ export const manuscriptProjectType: ProjectType = { // Default to manuscript title block style config[kTitleBlockStyle] = "manuscript"; + // Default to lightbox auto + config[kLightbox] = "auto"; + return config; }, create: (title: string): ProjectCreate => {