Fix/mentions spaces fix (#2667)

* feat: add mentions store to the space project

* fix: added mentions highlights in read only comment cards

* feat: added mention highlights in richtexteditor in space app
This commit is contained in:
Henit Chobisa 2023-11-06 20:42:24 +05:30 committed by GitHub
parent 13389d1b2b
commit 6eb0bf4785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 20 deletions

View file

@ -8,6 +8,7 @@ interface IRichTextReadOnlyEditor {
noBorder?: boolean;
borderOnFocus?: boolean;
customClassName?: string;
mentionHighlights?: string[];
}
interface RichTextReadOnlyEditorProps extends IRichTextReadOnlyEditor {
@ -26,10 +27,12 @@ const RichReadOnlyEditor = ({
customClassName,
value,
forwardedRef,
mentionHighlights,
}: RichTextReadOnlyEditorProps) => {
const editor = useReadOnlyEditor({
value,
forwardedRef,
mentionHighlights,
});
const editorClassNames = getEditorClassNames({ noBorder, borderOnFocus, customClassName });