conform to editor api changes

This commit is contained in:
Ammar Ahmed
2022-06-27 18:39:59 +05:00
parent 89f6d6f8c9
commit 064364d00c
8 changed files with 106 additions and 51 deletions

View File

@@ -25,7 +25,7 @@ export type EditorController = {
scroll: (event: React.UIEvent<HTMLDivElement, UIEvent>) => void;
title: string;
setTitle: React.Dispatch<React.SetStateAction<string>>;
openFilePicker: (type: "image" | "file") => void;
openFilePicker: (type: "image" | "file" | "camera") => void;
downloadAttachment: (attachment: Attachment) => void;
};
@@ -93,7 +93,7 @@ export function useEditorController(editor: Editor | null): EditorController {
const scroll = useCallback(
(event: React.UIEvent<HTMLDivElement, UIEvent>) => {
//@ts-ignore
post(EventTypes.scroll, event.target.scrollTop);
//post(EventTypes.scroll, event.target.scrollTop);
},
[]
);