@@ -135,7 +137,8 @@
}}
-
+
props.isFocused, (newValue) => {
+ if (!newValue) {
+ showHeader.value = false;
+ }
+}, { immediate: true });
+
const showPlayBtn = computed(
() => props.cellType === "code" || props.cellType === "sql"
);
diff --git a/zt_frontend/src/components/EditorComponent.vue b/zt_frontend/src/components/EditorComponent.vue
index fa464ffa..d3184fb9 100644
--- a/zt_frontend/src/components/EditorComponent.vue
+++ b/zt_frontend/src/components/EditorComponent.vue
@@ -272,11 +272,9 @@ isCursorAtEnd(editor: any): boolean {
this.isFocused = focus;
},
onEditorFocus() {
- console.log('TinyMCE editor focused');
this.handleFocus(true);
},
onEditorBlur() {
- console.log('TinyMCE editor blurred');
this.handleFocus(false);
}
},