Merge branch 'preview' of https://github.com/continuedev/continue into preview

This commit is contained in:
Nate Sesti 2024-02-21 13:58:11 -08:00
commit ae8126f202

View file

@ -369,14 +369,21 @@ function TipTapEditor(props: TipTapEditorProps) {
};
}, []);
// IDE event listeners
useEffect(() => {
if (!props.isMainInput) {
return;
}
if (editor && document.hasFocus()) {
if (editor) {
editor.commands.focus();
setTimeout(() => {
editor.commands.blur();
}, 0);
}
const handler = async (event: any) => {
if (!editor) return;