mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 09:58:11 +00:00
change highlight when changing tabs
This commit is contained in:
@@ -253,7 +253,7 @@ const CodeEditor = forwardRef(
|
|||||||
view.dispatch({
|
view.dispatch({
|
||||||
effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]),
|
effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]),
|
||||||
});
|
});
|
||||||
}, [renderer]);
|
}, [renderer, tab]);
|
||||||
|
|
||||||
useImperativeHandle(ref, ()=>({
|
useImperativeHandle(ref, ()=>({
|
||||||
getValue : ()=>viewRef.current.state.doc.toString(),
|
getValue : ()=>viewRef.current.state.doc.toString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user