@festo-ui/react 8.2.0-dev.622 → 8.2.0-dev.624

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.
@@ -11,6 +11,7 @@ export interface TextEditorConfiguration {
11
11
  image?: boolean;
12
12
  link?: boolean;
13
13
  };
14
+ modules?: object;
14
15
  }
15
16
  export interface TextEditorProps {
16
17
  readonly disabled?: boolean;
@@ -75,7 +75,8 @@ function TextEditor(_ref) {
75
75
  if (editorRef.current && Quill && editor === null) {
76
76
  const newEditor = new Quill(editorRef.current, {
77
77
  modules: {
78
- toolbar: `#editor-toolbar-${CSS.escape(id ?? "")}`
78
+ toolbar: `#editor-toolbar-${CSS.escape(id ?? "")}`,
79
+ ...config.modules
79
80
  },
80
81
  theme: "snow"
81
82
  });
@@ -95,7 +96,7 @@ function TextEditor(_ref) {
95
96
  }
96
97
  };
97
98
  initializeQuill();
98
- }, [editor, disabled, readOnly, id, setEditorContents, defaultValue]);
99
+ }, [editor, disabled, readOnly, id, setEditorContents, defaultValue, config.modules]);
99
100
  useEffect(() => {
100
101
  if (editor) {
101
102
  editor.on("text-change", () => {
@@ -84,7 +84,8 @@ function TextEditor(_ref) {
84
84
  if (editorRef.current && Quill && editor === null) {
85
85
  const newEditor = new Quill(editorRef.current, {
86
86
  modules: {
87
- toolbar: `#editor-toolbar-${CSS.escape(id ?? "")}`
87
+ toolbar: `#editor-toolbar-${CSS.escape(id ?? "")}`,
88
+ ...config.modules
88
89
  },
89
90
  theme: "snow"
90
91
  });
@@ -104,7 +105,7 @@ function TextEditor(_ref) {
104
105
  }
105
106
  };
106
107
  initializeQuill();
107
- }, [editor, disabled, readOnly, id, setEditorContents, defaultValue]);
108
+ }, [editor, disabled, readOnly, id, setEditorContents, defaultValue, config.modules]);
108
109
  (0, _react.useEffect)(() => {
109
110
  if (editor) {
110
111
  editor.on("text-change", () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "8.2.0-dev.622",
3
+ "version": "8.2.0-dev.624",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "copyright": "Copyright (c) 2025 Festo SE & Co. KG. All rights reserved.",
6
6
  "license": "apache-2.0",