Sync: Community Changes #4822

This commit is contained in:
pushya22
2025-11-21 12:59:34 +05:30
committed by GitHub
4 changed files with 17 additions and 16 deletions
@@ -89,14 +89,14 @@ function DocumentEditor(props: IDocumentEditorProps) {
return (
<PageRenderer
extendedEditorProps={extendedEditorProps}
bubbleMenuEnabled={bubbleMenuEnabled}
disabledExtensions={disabledExtensions}
displayConfig={displayConfig}
editor={editor}
editorContainerClassName={cn(editorContainerClassName, "document-editor")}
flaggedExtensions={flaggedExtensions}
extendedEditorProps={extendedEditorProps}
id={id}
flaggedExtensions={flaggedExtensions}
isTouchDevice={!!isTouchDevice}
/>
);
@@ -18,19 +18,19 @@ import type {
type Props = {
aiHandler?: TAIHandler;
bubbleMenuEnabled: boolean;
disabledExtensions: IEditorProps["disabledExtensions"];
displayConfig: TDisplayConfig;
documentLoaderClassName?: string;
editor: Editor;
titleEditor?: Editor;
editorContainerClassName: string;
extendedDocumentEditorProps?: ICollaborativeDocumentEditorPropsExtended;
extendedEditorProps: IEditorPropsExtended;
flaggedExtensions: IEditorProps["flaggedExtensions"];
id: string;
isLoading?: boolean;
isTouchDevice: boolean;
tabIndex?: number;
extendedEditorProps?: IEditorPropsExtended;
flaggedExtensions: IEditorProps["flaggedExtensions"];
disabledExtensions: IEditorProps["disabledExtensions"];
provider?: HocuspocusProvider;
state?: TCollabValue["state"];
};
@@ -39,19 +39,19 @@ export function PageRenderer(props: Props) {
const {
aiHandler,
bubbleMenuEnabled,
disabledExtensions,
displayConfig,
documentLoaderClassName,
editor,
editorContainerClassName,
extendedDocumentEditorProps,
id,
isLoading,
isTouchDevice,
tabIndex,
titleEditor,
extendedEditorProps,
flaggedExtensions,
disabledExtensions,
extendedDocumentEditorProps,
isLoading,
isTouchDevice,
id,
tabIndex,
titleEditor,
provider,
state,
} = props;
@@ -103,9 +103,9 @@ export function PageRenderer(props: Props) {
{bubbleMenuEnabled && (
<EditorBubbleMenu
disabledExtensions={disabledExtensions}
flaggedExtensions={flaggedExtensions}
editor={editor}
extendedEditorProps={extendedEditorProps}
flaggedExtensions={flaggedExtensions}
/>
)}
<BlockMenu
@@ -45,8 +45,9 @@ function RichTextEditor(props: IRichTextEditorProps) {
{editor && bubbleMenuEnabled && (
<EditorBubbleMenu
disabledExtensions={disabledExtensions}
flaggedExtensions={flaggedExtensions}
editor={editor}
extendedEditorProps={extendedEditorProps}
flaggedExtensions={flaggedExtensions}
/>
)}
<BlockMenu
@@ -66,9 +66,9 @@ export type EditorStateType = {
};
type Props = {
editor: Editor;
extendedEditorProps?: IEditorPropsExtended;
disabledExtensions: TExtensions[];
editor: Editor;
extendedEditorProps: IEditorPropsExtended;
flaggedExtensions: TExtensions[];
};