From 7f998faf7b84fea1133d9a40ef927c4b2e2d7164 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sun, 20 Sep 2026 00:22:10 -0400 Subject: [PATCH] fix(editor): corriger SyntaxError duplicate inner dans _page_editor_scripts.html (v6.2.0) - Renomme var inner -> syncedInner dans le bloc synced pour lever Uncaught SyntaxError Identifier inner has already been declared - Ce SyntaxError cassait le parsing de tout le script editor -> editorState/loadCoverIcon/etc. not defined - Les pages clippees paraissaient vides a cause du JS casse; apres fix le rendu des blocks (bookmark/image/paragraph) fonctionne - Rebuild Docker OK (v6.2.0, migration 19 deja appliquee) --- app/templates/_page_editor_scripts.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/_page_editor_scripts.html b/app/templates/_page_editor_scripts.html index 0326e14..57219b7 100644 --- a/app/templates/_page_editor_scripts.html +++ b/app/templates/_page_editor_scripts.html @@ -572,10 +572,10 @@ window.__fdEditorScriptsLoaded = true; var syncedTitle=b._synced_title||'Synced block'; var syncedContent=b._synced_content||[]; var sid=b.synced_id||''; - var inner=syncedContent.map(function(ch){return'
'+mdEsc(typeof ch==='object'?ch.content||'':ch)+'
';}).join(''); + var syncedInner=syncedContent.map(function(ch){return'
'+mdEsc(typeof ch==='object'?ch.content||'':ch)+'
';}).join(''); return `
đŸ”— Synced — ${esc(syncedTitle)}
-
${inner||'
Loading synced content…
'}
+
${syncedInner||'
Loading synced content…
'}
`; } const ph=b.type==='heading_1'?'Heading 1':b.type==='heading_2'?'Heading 2':b.type==='heading_3'?'Heading 3':b.type==='heading_4'?'Heading 4':b.type==='bulleted_list'?'List':b.type==='numbered_list'?'List':b.type==='to_do'?'To-do':b.type==='toggle'?'Toggle list':b.type==='quote'?'Empty quote':b.type==='code'?'Type code...':b.type==='callout'?'Type something...':(b.type==='paragraph'&&!b.content?'Press \'space\' for AI or \'/\' for commands':'Press \'/\' for commands...');