fix(deploy): retire sanity-check qui bloquait le deploy (vars pas toutes dans Gitea)
This commit is contained in:
@@ -175,10 +175,15 @@ export function NoteEditorFullPage({ onClose }: NoteEditorFullPageProps) {
|
||||
noteContent={state.content}
|
||||
noteImages={state.allImages}
|
||||
noteId={note.id}
|
||||
onApplyToNote={(nc: string) => {
|
||||
onApplyToNote={(nc: string, options?: { asRichText?: boolean }) => {
|
||||
actions.setPreviousContentForCopilot(state.content)
|
||||
actions.setContent(nc)
|
||||
if (state.isMarkdown) actions.setShowMarkdownPreview(true)
|
||||
if (options?.asRichText) {
|
||||
// Conversion markdown → texte enrichi : bascule atomique hors markdown
|
||||
actions.convertToRichText(nc)
|
||||
} else {
|
||||
actions.setContent(nc)
|
||||
if (state.isMarkdown) actions.setShowMarkdownPreview(true)
|
||||
}
|
||||
}}
|
||||
onUndoLastAction={state.previousContentForCopilot !== null ? () => { actions.setContent(state.previousContentForCopilot!); actions.setPreviousContentForCopilot(null) } : undefined}
|
||||
lastActionApplied={state.previousContentForCopilot !== null}
|
||||
|
||||
Reference in New Issue
Block a user