@visns-studio/visns-components 3.6.4 → 3.6.5
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/components/crm/Field.jsx
CHANGED
|
@@ -40,6 +40,7 @@ function Field({
|
|
|
40
40
|
setFormData,
|
|
41
41
|
settings,
|
|
42
42
|
style,
|
|
43
|
+
userProfile = null,
|
|
43
44
|
}) {
|
|
44
45
|
const editorRef = useRef(null);
|
|
45
46
|
const fileImageInputRef = useRef(null);
|
|
@@ -991,7 +992,11 @@ function Field({
|
|
|
991
992
|
case 'richeditor':
|
|
992
993
|
return (
|
|
993
994
|
<Editor
|
|
994
|
-
apiKey={
|
|
995
|
+
apiKey={
|
|
996
|
+
userProfile?.settings?.api?.tinymce
|
|
997
|
+
? userProfile.settings.api.tinymce
|
|
998
|
+
: ''
|
|
999
|
+
}
|
|
995
1000
|
onEditorChange={(value, e) => {
|
|
996
1001
|
onChangeRicheditor(e, value, settings.id);
|
|
997
1002
|
}}
|
package/components/crm/Form.jsx
CHANGED
|
@@ -1121,6 +1121,7 @@ function Form({
|
|
|
1121
1121
|
setFormData={setFormData}
|
|
1122
1122
|
style={style}
|
|
1123
1123
|
uploadProgress={uploadProgress}
|
|
1124
|
+
userProfile={userProfile}
|
|
1124
1125
|
/>
|
|
1125
1126
|
);
|
|
1126
1127
|
}
|
|
@@ -1235,6 +1236,7 @@ function Form({
|
|
|
1235
1236
|
setFormData={setFormData}
|
|
1236
1237
|
style={style}
|
|
1237
1238
|
uploadProgress={uploadProgress}
|
|
1239
|
+
userProfile={userProfile}
|
|
1238
1240
|
/>
|
|
1239
1241
|
);
|
|
1240
1242
|
})}
|
package/package.json
CHANGED