[WIKI-632] chore: add extended document editor props (#7783)
This commit is contained in:
parent
f2057cd8fe
commit
d5c3c0cbe1
3 changed files with 9 additions and 2 deletions
|
|
@ -44,6 +44,7 @@ const CollaborativeDocumentEditor: React.FC<ICollaborativeDocumentEditorProps> =
|
||||||
serverHandler,
|
serverHandler,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
user,
|
user,
|
||||||
|
extendedDocumentEditorProps,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
// use document editor
|
// use document editor
|
||||||
|
|
@ -71,6 +72,7 @@ const CollaborativeDocumentEditor: React.FC<ICollaborativeDocumentEditorProps> =
|
||||||
serverHandler,
|
serverHandler,
|
||||||
tabIndex,
|
tabIndex,
|
||||||
user,
|
user,
|
||||||
|
extendedDocumentEditorProps,
|
||||||
});
|
});
|
||||||
|
|
||||||
const editorContainerClassNames = getEditorClassNames({
|
const editorContainerClassNames = getEditorClassNames({
|
||||||
|
|
@ -97,6 +99,7 @@ const CollaborativeDocumentEditor: React.FC<ICollaborativeDocumentEditorProps> =
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
flaggedExtensions={flaggedExtensions}
|
flaggedExtensions={flaggedExtensions}
|
||||||
disabledExtensions={disabledExtensions}
|
disabledExtensions={disabledExtensions}
|
||||||
|
extendedDocumentEditorProps={extendedDocumentEditorProps}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { cn } from "@plane/utils";
|
||||||
import { DocumentContentLoader, EditorContainer, EditorContentWrapper } from "@/components/editors";
|
import { DocumentContentLoader, EditorContainer, EditorContentWrapper } from "@/components/editors";
|
||||||
import { AIFeaturesMenu, BlockMenu, EditorBubbleMenu } from "@/components/menus";
|
import { AIFeaturesMenu, BlockMenu, EditorBubbleMenu } from "@/components/menus";
|
||||||
// types
|
// types
|
||||||
import { IEditorProps, TAIHandler, TDisplayConfig } from "@/types";
|
import type { ICollaborativeDocumentEditorPropsExtended, IEditorProps, TAIHandler, TDisplayConfig } from "@/types";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
aiHandler?: TAIHandler;
|
aiHandler?: TAIHandler;
|
||||||
|
|
@ -14,6 +14,7 @@ type Props = {
|
||||||
documentLoaderClassName?: string;
|
documentLoaderClassName?: string;
|
||||||
editor: Editor;
|
editor: Editor;
|
||||||
editorContainerClassName: string;
|
editorContainerClassName: string;
|
||||||
|
extendedDocumentEditorProps?: ICollaborativeDocumentEditorPropsExtended;
|
||||||
id: string;
|
id: string;
|
||||||
isLoading?: boolean;
|
isLoading?: boolean;
|
||||||
isTouchDevice: boolean;
|
isTouchDevice: boolean;
|
||||||
|
|
|
||||||
|
|
@ -51,4 +51,7 @@ export type TCollaborativeEditorHookProps = TCoreHookProps &
|
||||||
| "placeholder"
|
| "placeholder"
|
||||||
| "tabIndex"
|
| "tabIndex"
|
||||||
> &
|
> &
|
||||||
Pick<ICollaborativeDocumentEditorProps, "dragDropEnabled" | "realtimeConfig" | "serverHandler" | "user">;
|
Pick<
|
||||||
|
ICollaborativeDocumentEditorProps,
|
||||||
|
"dragDropEnabled" | "extendedDocumentEditorProps" | "realtimeConfig" | "serverHandler" | "user"
|
||||||
|
>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue