@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.
@@ -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={userProfile?.settings?.api?.tinymce}
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
  }}
@@ -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
  })}
@@ -851,6 +851,10 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
851
851
  apiKey={
852
852
  userProfile?.settings
853
853
  ?.api?.tinymce
854
+ ? userProfile
855
+ .settings.api
856
+ .tinymce
857
+ : ''
854
858
  }
855
859
  onEditorChange={(
856
860
  value,
package/package.json CHANGED
@@ -50,7 +50,7 @@
50
50
  "react-dom": "^17.0.1"
51
51
  },
52
52
  "name": "@visns-studio/visns-components",
53
- "version": "3.6.4",
53
+ "version": "3.6.5",
54
54
  "description": "Various packages to assist in the development of our Custom Applications.",
55
55
  "main": "index.js",
56
56
  "scripts": {