From 3bbce89d9ed1a55db451accc19b351968dc68666 Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Wed, 11 Dec 2024 17:49:19 +0100 Subject: [PATCH] deprecate editorType --- client/interfaces.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/interfaces.ts b/client/interfaces.ts index 4a89a4262..86e9f5928 100644 --- a/client/interfaces.ts +++ b/client/interfaces.ts @@ -1570,7 +1570,15 @@ export interface IEditorFieldProps { schema?: IProfileSchemaType; editor?: IProfileEditorField; showErrors?: boolean; + + /** + * @deprecated + * Do not use in future code and remove from existing usages where possible. + * `editorType` is used to access globals which is breaking usage in multiple editors at once. + * For example when editing related plannings. + * */ editorType?: EDITOR_TYPE; + profile?: IPlanningContentProfile; onChange(field: string | {[key: string]: any}, value: any): void;