first commit
This commit is contained in:
commit
2bcc676df1
24 files changed
+6255
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
||||
import { registerCodeHighlighting } from '@lexical/code';
|
||||
|
||||
export function CodeHighlightPlugin() {
|
||||
const [editor] = useLexicalComposerContext();
|
||||
|
||||
useEffect(() => {
|
||||
return registerCodeHighlighting(editor);
|
||||
}, [editor]);
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user