mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-27 14:57:21 +02:00
fix(editor): Editor tooltip style is lost (no-changelog) (#18191)
This commit is contained in:
parent
45a7175074
commit
c3df5f24ff
|
|
@ -1,5 +1,6 @@
|
|||
import { CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID } from '@/constants';
|
||||
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { EditorView, tooltips } from '@codemirror/view';
|
||||
import { tags } from '@lezer/highlight';
|
||||
|
||||
/**
|
||||
|
|
@ -259,4 +260,7 @@ export const codeEditorTheme = ({ isReadOnly, minHeight, maxHeight, rows }: Them
|
|||
},
|
||||
}),
|
||||
codeEditorSyntaxHighlighting,
|
||||
tooltips({
|
||||
parent: document.getElementById(CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID) ?? undefined,
|
||||
}),
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user