* Refactor, remove confusing 'packages' language * Basic notifications when mentioned in comment * fix: Incorrect trimming of comments * test
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
import * as React from "react";
|
|
import { basicExtensions, withComments } from "@shared/editor/nodes";
|
|
import Editor, { Props as EditorProps } from "~/components/Editor";
|
|
import type { Editor as SharedEditor } from "~/editor";
|
|
|
|
const extensions = withComments(basicExtensions);
|
|
|
|
const CommentEditor = (
|
|
props: EditorProps,
|
|
ref: React.RefObject<SharedEditor>
|
|
) => {
|
|
return <Editor extensions={extensions} {...props} ref={ref} />;
|
|
};
|
|
|
|
export default React.forwardRef(CommentEditor);
|