feat: init
This commit is contained in:
41
apps/web/ce/hooks/use-editor-flagging.ts
Normal file
41
apps/web/ce/hooks/use-editor-flagging.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
// editor
|
||||
import type { TExtensions } from "@plane/editor";
|
||||
import type { EPageStoreType } from "@/plane-web/hooks/store";
|
||||
|
||||
export type TEditorFlaggingHookReturnType = {
|
||||
document: {
|
||||
disabled: TExtensions[];
|
||||
flagged: TExtensions[];
|
||||
};
|
||||
liteText: {
|
||||
disabled: TExtensions[];
|
||||
flagged: TExtensions[];
|
||||
};
|
||||
richText: {
|
||||
disabled: TExtensions[];
|
||||
flagged: TExtensions[];
|
||||
};
|
||||
};
|
||||
|
||||
export type TEditorFlaggingHookProps = {
|
||||
workspaceSlug: string;
|
||||
storeType?: EPageStoreType;
|
||||
};
|
||||
|
||||
/**
|
||||
* @description extensions disabled in various editors
|
||||
*/
|
||||
export const useEditorFlagging = (_props: TEditorFlaggingHookProps): TEditorFlaggingHookReturnType => ({
|
||||
document: {
|
||||
disabled: ["ai", "collaboration-cursor"],
|
||||
flagged: [],
|
||||
},
|
||||
liteText: {
|
||||
disabled: ["ai", "collaboration-cursor"],
|
||||
flagged: [],
|
||||
},
|
||||
richText: {
|
||||
disabled: ["ai", "collaboration-cursor"],
|
||||
flagged: [],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user