feat: open inline images in lightbox

This commit is contained in:
lucaronin
2026-04-30 05:49:40 +02:00
parent 2c06c8dcc2
commit 65ff44eb50
25 changed files with 373 additions and 2 deletions

View File

@@ -345,6 +345,7 @@ function EditorCanvas({
onEditorChange,
isDeletedPreview,
vaultPath,
locale,
}: Pick<
EditorContentModel,
| 'showEditor'
@@ -355,6 +356,7 @@ function EditorCanvas({
| 'onEditorChange'
| 'isDeletedPreview'
| 'vaultPath'
| 'locale'
>) {
if (!showEditor) return null
@@ -368,6 +370,7 @@ function EditorCanvas({
onChange={onEditorChange}
vaultPath={vaultPath}
editable={!isDeletedPreview}
locale={locale}
/>
</div>
</EditorFindScope>
@@ -498,6 +501,7 @@ export function EditorContentLayout(model: EditorContentModel) {
onNavigateWikilink={onNavigateWikilink}
onEditorChange={onEditorChange}
isDeletedPreview={isDeletedPreview}
locale={locale}
/>
</>
)}