@visns-studio/visns-components 3.7.1 → 3.7.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.
@@ -187,7 +187,7 @@ function VisnsDropZone({ fetchData, files, settings }) {
187
187
  };
188
188
 
189
189
  useEffect(() => {
190
- if (data.length > 0) {
190
+ if (data?.length > 0) {
191
191
  CustomFetch(
192
192
  '/ajax/files/sort_update',
193
193
  'POST',
@@ -668,7 +668,8 @@ const Field = ({
668
668
  case 'richeditor':
669
669
  htmlContainer = (
670
670
  <Editor
671
- apiKey="51mqcxkrrco6unmr6h8exc5mkhtjwi6fpyedy3r493px8cbq"
671
+ tinymceScriptSrc="https://d16lktya8ojp5z.cloudfront.net/generic/packages/tinymce_v701/tinymce.min.js"
672
+ licenseKey="gpl"
672
673
  onEditorChange={(value, e) => {
673
674
  onChangeRicheditor(e, value, settings.id);
674
675
  }}
@@ -993,13 +993,8 @@ function Field({
993
993
  case 'richeditor':
994
994
  return (
995
995
  <Editor
996
- apiKey={
997
- userProfile?.settings?.api?.tinymce
998
- ? userProfile.settings.api.tinymce
999
- : api.tinymce
1000
- ? api.tinymce
1001
- : ''
1002
- }
996
+ tinymceScriptSrc="https://d16lktya8ojp5z.cloudfront.net/generic/packages/tinymce_v701/tinymce.min.js"
997
+ licenseKey="gpl"
1003
998
  onEditorChange={(value, e) => {
1004
999
  onChangeRicheditor(e, value, settings.id);
1005
1000
  }}
@@ -848,14 +848,8 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
848
848
  <div className="formItem fwItem">
849
849
  <label className="fi__label">
850
850
  <Editor
851
- apiKey={
852
- userProfile?.settings
853
- ?.api?.tinymce
854
- ? userProfile
855
- .settings.api
856
- .tinymce
857
- : ''
858
- }
851
+ tinymceScriptSrc="https://d16lktya8ojp5z.cloudfront.net/generic/packages/tinymce_v701/tinymce.min.js"
852
+ licenseKey="gpl"
859
853
  onEditorChange={(
860
854
  value,
861
855
  e
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.7.1",
53
+ "version": "3.7.3",
54
54
  "description": "Various packages to assist in the development of our Custom Applications.",
55
55
  "main": "index.js",
56
56
  "scripts": {