mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Easy $fromAI Button for AI Tools (#12587)
This commit is contained in:
@@ -55,6 +55,12 @@ const workflowsStore = useWorkflowsStore();
|
||||
|
||||
const isDragging = computed(() => ndvStore.isDraggableDragging);
|
||||
|
||||
function select() {
|
||||
if (inlineInput.value) {
|
||||
inlineInput.value.selectAll();
|
||||
}
|
||||
}
|
||||
|
||||
function focus() {
|
||||
if (inlineInput.value) {
|
||||
inlineInput.value.focus();
|
||||
@@ -162,7 +168,7 @@ watch(isDragging, (newIsDragging) => {
|
||||
|
||||
onClickOutside(container, (event) => onBlur(event));
|
||||
|
||||
defineExpose({ focus });
|
||||
defineExpose({ focus, select });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -220,6 +226,7 @@ defineExpose({ focus });
|
||||
<style lang="scss" module>
|
||||
.expression-parameter-input {
|
||||
position: relative;
|
||||
flex-grow: 1;
|
||||
|
||||
:global(.cm-editor) {
|
||||
background-color: var(--color-code-background);
|
||||
|
||||
Reference in New Issue
Block a user