feat(editor): Make auto-focus work for Focus Panel (no-changelog) (#17294)

This commit is contained in:
Daria
2025-07-15 11:52:23 +03:00
committed by GitHub
parent c1b008090f
commit 61e2e34caa
9 changed files with 140 additions and 14 deletions

View File

@@ -106,6 +106,17 @@ function createEditor() {
function destroyEditor() {
editor.value?.destroy();
}
const focus = () => {
const view = editor.value;
if (view && typeof view.focus === 'function') {
view.focus();
}
};
defineExpose({
focus,
});
</script>
<template>