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:
parent
13389d1b2b
commit
6eb0bf4785
6 changed files with 93 additions and 20 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue