0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-29 20:48:10 +00:00

change highlight when changing tabs

This commit is contained in:
Víctor Losada Hernández
2026-03-29 01:46:51 +01:00
parent fb42675574
commit b53abb5f9f

View File

@@ -253,7 +253,7 @@ const CodeEditor = forwardRef(
view.dispatch({
effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]),
});
}, [renderer]);
}, [renderer, tab]);
useImperativeHandle(ref, ()=>({
getValue : ()=>viewRef.current.state.doc.toString(),