fix: Tiptap comment card fix for space (#2129)
* fix:(space) fixed comment card's editor integration * regression: removed content being set twice * chore: added controller to manage tiptap editor * chore: remove unused functions --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
This commit is contained in:
parent
7842c4b2ea
commit
4447a4b519
3 changed files with 11 additions and 15 deletions
|
|
@ -56,12 +56,6 @@ const Tiptap = (props: ITipTapRichTextEditor) => {
|
|||
},
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (editor) {
|
||||
editor.commands.setContent(value);
|
||||
}
|
||||
}, [value]);
|
||||
|
||||
const editorRef: React.MutableRefObject<Editor | null> = useRef(null);
|
||||
|
||||
useImperativeHandle(forwardedRef, () => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue