mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Editor tooltip style is lost (no-changelog) (#18191)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
|
import { CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID } from '@/constants';
|
||||||
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
||||||
import { EditorView } from '@codemirror/view';
|
import { EditorView, tooltips } from '@codemirror/view';
|
||||||
import { tags } from '@lezer/highlight';
|
import { tags } from '@lezer/highlight';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -259,4 +260,7 @@ export const codeEditorTheme = ({ isReadOnly, minHeight, maxHeight, rows }: Them
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
codeEditorSyntaxHighlighting,
|
codeEditorSyntaxHighlighting,
|
||||||
|
tooltips({
|
||||||
|
parent: document.getElementById(CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID) ?? undefined,
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user