mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
feat(editor): Make auto-focus work for Focus Panel (no-changelog) (#17294)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user