@richscripts/richtexteditor 2.10.0 → 2.11.1

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.
@@ -29461,7 +29461,8 @@ function RTE_Plugin_ImageEditor() {
29461
29461
  savebtn.innerText = "Saving...";
29462
29462
 
29463
29463
  var dataurl = imgeditor.toDataURL();
29464
- if (!config.file_upload_handler) {
29464
+ var uploadHandler = config.file_upload_handler || window.rte_file_upload_handler;
29465
+ if (!uploadHandler) {
29465
29466
  img.src = dataurl;
29466
29467
  editor.notifySelectionChange();
29467
29468
  dialoginner.close();
@@ -29470,7 +29471,7 @@ function RTE_Plugin_ImageEditor() {
29470
29471
 
29471
29472
  var file = dataURLToBlob(dataurl);
29472
29473
 
29473
- config.file_upload_handler(file, function (url, error) {
29474
+ uploadHandler(file, function (url, error) {
29474
29475
  if (url) {
29475
29476
  img.src = url;
29476
29477
  editor.notifySelectionChange();