Merge branch 'master' of github.com:makeplane/plane into build/merge_frontend_backend
This commit is contained in:
commit
45fe4b89db
55 changed files with 5928 additions and 937 deletions
11
apps/plane/components/lexical/plugins/code-highlight.tsx
Normal file
11
apps/plane/components/lexical/plugins/code-highlight.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useEffect } from "react";
|
||||
import { registerCodeHighlighting } from "@lexical/code";
|
||||
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
||||
|
||||
export const CodeHighlightPlugin = () => {
|
||||
const [editor] = useLexicalComposerContext();
|
||||
useEffect(() => {
|
||||
return registerCodeHighlighting(editor);
|
||||
}, [editor]);
|
||||
return null;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue