@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
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.11.1",
|
|
7
7
|
"description": "A full-featured JavaScript rich text editor (WYSIWYG) with toolbar, plugins, i18n support, a built-in AI Toolkit (Ask AI, AI Chat, AI Review drawer, BYOK resolver), structured content APIs (JSON/Markdown), and an optional collaboration / review stack: slash commands, @mentions, human-author Track Changes, threaded comments, revision history, and Yjs-backed presence. Ships first-class React, Vue, Angular and Svelte bindings, a headless \"bring your own UI\" core, and server-safe conversion helpers.",
|
|
8
8
|
"main": "./richtexteditor/rte.js",
|
|
9
9
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"artifact:migration": "node scripts/build-migration-fidelity-artifact.js",
|
|
18
18
|
"artifact:migration:runtime": "npm --prefix vendor-runtime-tests ci && npm --prefix vendor-runtime-tests run generate && node scripts/build-migration-fidelity-artifact.js",
|
|
19
19
|
"guard:protected": "node tests/guard-protected-bundle.js",
|
|
20
|
-
"prepublishOnly": "node tests/guard-protected-bundle.js"
|
|
20
|
+
"prepublishOnly": "node tests/guard-protected-bundle.js && node tests/guard-version-tie.js"
|
|
21
21
|
},
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
23
|
"style": "./richtexteditor/rte_theme_default.css",
|
|
@@ -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();
|