mirror of
https://github.com/makeplane/plane.git
synced 2026-02-25 04:35:21 +01:00
[WIKI-656] fix: rendering work item embed component in version history #4159
This commit is contained in:
@@ -70,6 +70,11 @@ export const DocumentEditor = forwardRef<EditorRefApi, DocumentEditorWrapperProp
|
||||
const {
|
||||
data: { is_smooth_cursor_enabled },
|
||||
} = useUserProfile();
|
||||
const {
|
||||
embedHandler,
|
||||
isSmoothCursorEnabled: _isSmoothCursorEnabled,
|
||||
...restExtendedEditorProps
|
||||
} = extendedEditorProps ?? {};
|
||||
|
||||
return (
|
||||
<DocumentEditorWithRef
|
||||
@@ -99,9 +104,9 @@ export const DocumentEditor = forwardRef<EditorRefApi, DocumentEditorWrapperProp
|
||||
externalEmbedComponent: {
|
||||
widgetCallback: EmbedHandler,
|
||||
},
|
||||
...extendedEditorProps?.embedHandler,
|
||||
...embedHandler,
|
||||
},
|
||||
...extendedEditorProps,
|
||||
...restExtendedEditorProps,
|
||||
}}
|
||||
{...rest}
|
||||
containerClassName={cn("relative pl-3 pb-3", containerClassName)}
|
||||
|
||||
Reference in New Issue
Block a user