smartrte-react 0.2.1 → 0.2.3

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.
@@ -26,6 +26,24 @@ type ClassicEditorProps = {
26
26
  * Example: "Arial, sans-serif"
27
27
  */
28
28
  defaultFont?: string;
29
+ /**
30
+ * Preserve font-family styles from pasted/imported content.
31
+ * Defaults to false so host applications can keep a single app font while
32
+ * still preserving bold, italic, headings, lists, tables, and colors.
33
+ */
34
+ preserveFontFamily?: boolean;
35
+ /**
36
+ * Preserve foreground/background colors from pasted/imported content.
37
+ * Defaults to false so dark-mode editors remain readable when content is
38
+ * copied from sources such as Google Docs with hardcoded black-on-white styles.
39
+ */
40
+ preserveColors?: boolean;
41
+ /**
42
+ * Preserve visual styling from imported DOCX files except font-family.
43
+ * This keeps Word-authored colors, spacing, borders, and table fills while
44
+ * still allowing the host app to control the editor font.
45
+ */
46
+ preserveDocxStyles?: boolean;
29
47
  /**
30
48
  * Theme mode for the editor.
31
49
  * - "light" (default): Uses the built-in light theme.
@@ -39,5 +57,5 @@ type ClassicEditorProps = {
39
57
  */
40
58
  className?: string;
41
59
  };
42
- export declare function ClassicEditor({ value, onChange, placeholder, minHeight, maxHeight, readOnly, table, media, formula, mediaManager, fonts, defaultFont, theme, className, }: ClassicEditorProps): import("react/jsx-runtime").JSX.Element;
60
+ export declare function ClassicEditor({ value, onChange, placeholder, minHeight, maxHeight, readOnly, table, media, formula, mediaManager, fonts, defaultFont, preserveFontFamily, preserveColors, preserveDocxStyles, theme, className, }: ClassicEditorProps): import("react/jsx-runtime").JSX.Element;
43
61
  export {};