@osovitny/anatoly 2.1.12 → 2.1.13
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/bundles/osovitny-anatoly.umd.js +15 -1
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/esm2015/lib/core/convert.js +13 -1
- package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +2 -2
- package/fesm2015/osovitny-anatoly.js +13 -1
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/convert.d.ts +2 -0
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -704,6 +704,20 @@
|
|
|
704
704
|
text: enumeration[key]
|
|
705
705
|
}); });
|
|
706
706
|
};
|
|
707
|
+
Convert.stringToArray = function (str, separator) {
|
|
708
|
+
if (separator === void 0) { separator = ','; }
|
|
709
|
+
if (str) {
|
|
710
|
+
return str.split(separator).filter(function (element) { return element; });
|
|
711
|
+
}
|
|
712
|
+
return [];
|
|
713
|
+
};
|
|
714
|
+
Convert.stringToIntArray = function (str, separator) {
|
|
715
|
+
if (separator === void 0) { separator = ','; }
|
|
716
|
+
if (str) {
|
|
717
|
+
return str.split(separator).filter(function (element) { return element; }).map(function (value) { return parseInt(value); });
|
|
718
|
+
}
|
|
719
|
+
return [];
|
|
720
|
+
};
|
|
707
721
|
return Convert;
|
|
708
722
|
}());
|
|
709
723
|
|
|
@@ -2834,7 +2848,7 @@
|
|
|
2834
2848
|
Upload:
|
|
2835
2849
|
https://www.froala.com/wysiwyg-editor/docs/concepts/image/upload
|
|
2836
2850
|
*/
|
|
2837
|
-
imageUploadURL: "/api/
|
|
2851
|
+
imageUploadURL: "/api/htmlEditor/uploadImage",
|
|
2838
2852
|
imageAllowedTypes: ["jpeg", "jpg", "png"],
|
|
2839
2853
|
imageUploadParams: { uploadType: "", uploadParentId: "" },
|
|
2840
2854
|
};
|