add image previews to settings

This commit is contained in:
Víctor Losada Hernández
2026-08-26 21:49:21 +02:00
parent a83ac83ed3
commit 2fc135724f
4 changed files with 21 additions and 6 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ const CodeEditor = forwardRef(
}),
//highlights
highlightCompartment.of([customHighlightPlugin(renderer, tab), highlightExtension]),
highlightCompartment.of([customHighlightPlugin(renderer, tab, settings), highlightExtension]),
themeCompartment.of(themeExtension),
//keyboard shortcut
@@ -341,7 +341,7 @@ const CodeEditor = forwardRef(
: syntaxHighlighting(legacyCustomHighlightStyle);
view.dispatch({
effects : highlightCompartment.reconfigure([customHighlightPlugin(renderer, tab), highlightExtension])
effects : highlightCompartment.reconfigure([customHighlightPlugin(renderer, tab, settings), highlightExtension])
});
}, [renderer, tab]);