@uva-glass/component-library 3.50.13 → 3.50.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { LexicalEditor } from 'lexical';
|
|
1
3
|
export interface RteEditorProps {
|
|
2
4
|
/** current language setting for the editor labels NOT title ans label */
|
|
3
5
|
currentLanguage?: 'NL' | 'EN';
|
|
@@ -17,8 +19,10 @@ export interface RteEditorProps {
|
|
|
17
19
|
maxHeightInRem?: `${number}rem`;
|
|
18
20
|
/** error text to display if required and field is empty */
|
|
19
21
|
notValidatedText?: string;
|
|
22
|
+
/** Ref to the Lexical editor instance */
|
|
23
|
+
rteRef?: RefObject<LexicalEditor> | null;
|
|
20
24
|
/** updated output */
|
|
21
25
|
onChange: (content: string) => void;
|
|
22
26
|
}
|
|
23
|
-
export declare const Rte: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxHeightInRem, maxWords, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare const RteEditor: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxWords, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Rte: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxHeightInRem, maxWords, rteRef, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const RteEditor: ({ currentLanguage, initialValue, placeholder, label, info, required, notValidatedText, maxWords, rteRef, onChange, }: RteEditorProps) => import("react/jsx-runtime").JSX.Element;
|