mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-21 21:06:58 +00:00
change highlight when changing tabs
This commit is contained in:
1 parent
fb42675574
commit
b53abb5f9f
1 file changed
+1
-1
@@ -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