@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.
- package/index.d.ts +2075 -1412
- package/package.json +2 -2
- package/richtexteditor/all_plugins.js +3 -2
- package/richtexteditor/all_plugins.min.js +1 -1
- package/richtexteditor/plugins/all_plugins.js +3 -2
- package/richtexteditor/plugins/all_plugins.min.js +1 -1
- package/richtexteditor/plugins/imageeditor.js +3 -2
- package/richtexteditor/rte-config.js +152 -18
- package/richtexteditor/rte-headless.js +40 -0
- package/richtexteditor/rte.js +25 -8
- package/richtexteditor/runtime/colorpicker_more_ns.htm +129 -35
|
@@ -29461,7 +29461,8 @@ function RTE_Plugin_ImageEditor() {
|
|
|
29461
29461
|
savebtn.innerText = "Saving...";
|
|
29462
29462
|
|
|
29463
29463
|
var dataurl = imgeditor.toDataURL();
|
|
29464
|
-
|
|
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
|
-
|
|
29474
|
+
uploadHandler(file, function (url, error) {
|
|
29474
29475
|
if (url) {
|
|
29475
29476
|
img.src = url;
|
|
29476
29477
|
editor.notifySelectionChange();
|