@festo-ui/react 8.2.0-dev.623 → 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.
|
@@ -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