smartrte-react 0.1.13 → 0.1.15
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.
- package/dist/components/ClassicEditor.d.ts +16 -1
- package/dist/components/ClassicEditor.js +898 -289
- package/package.json +25 -20
|
@@ -10,6 +10,21 @@ type ClassicEditorProps = {
|
|
|
10
10
|
media?: boolean;
|
|
11
11
|
formula?: boolean;
|
|
12
12
|
mediaManager?: MediaManagerAdapter;
|
|
13
|
+
/**
|
|
14
|
+
* Optional custom list of fonts to display in the toolbar.
|
|
15
|
+
* If not provided, a default set of web-safe fonts will be used.
|
|
16
|
+
* Example: [{ name: 'Robto', value: 'Roboto, sans-serif' }]
|
|
17
|
+
*/
|
|
18
|
+
fonts?: {
|
|
19
|
+
name: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
/**
|
|
23
|
+
* The default font family to apply to the editor content.
|
|
24
|
+
* This sets the font-family style of the editable area.
|
|
25
|
+
* Example: "Arial, sans-serif"
|
|
26
|
+
*/
|
|
27
|
+
defaultFont?: string;
|
|
13
28
|
};
|
|
14
|
-
export declare function ClassicEditor({ value, onChange, placeholder, minHeight, maxHeight, readOnly, table, media, formula, mediaManager, }: ClassicEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function ClassicEditor({ value, onChange, placeholder, minHeight, maxHeight, readOnly, table, media, formula, mediaManager, fonts, defaultFont, }: ClassicEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
30
|
export {};
|