diff --git a/src/components/blog/TextEditor.tsx b/src/components/blog/TextEditor.tsx index 92e6753..d8db337 100644 --- a/src/components/blog/TextEditor.tsx +++ b/src/components/blog/TextEditor.tsx @@ -736,6 +736,7 @@ export default function TextEditor(props: TextEditorProps) { endpoint: string; token: string; } | null>(null); + const [infillEnabled, setInfillEnabled] = createSignal(true); // Toggle for auto-suggestions let infillDebounceTimer: ReturnType | null = null; // Force reactive updates for button states @@ -1351,8 +1352,8 @@ export default function TextEditor(props: TextEditorProps) { }, 2000); } - // Debounced infill trigger (250ms) - if (infillConfig() && !isInitialLoad) { + // Debounced infill trigger (250ms) - only if enabled + if (infillConfig() && !isInitialLoad && infillEnabled()) { if (infillDebounceTimer) { clearTimeout(infillDebounceTimer); } @@ -3621,6 +3622,32 @@ export default function TextEditor(props: TextEditorProps) { ⌨ Help + {/* AI Autocomplete Toggle - Desktop only, shown when config available */} + + + + {/* Table controls - shown when cursor is in a table */}