jodit-pro-react 5.6.17 → 5.6.19
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.
|
@@ -155,9 +155,11 @@ __export(constants_exports, {
|
|
|
155
155
|
KEY_BACKSPACE: () => KEY_BACKSPACE,
|
|
156
156
|
KEY_DELETE: () => KEY_DELETE,
|
|
157
157
|
KEY_DOWN: () => KEY_DOWN,
|
|
158
|
+
KEY_END: () => KEY_END,
|
|
158
159
|
KEY_ENTER: () => KEY_ENTER,
|
|
159
160
|
KEY_ESC: () => KEY_ESC,
|
|
160
161
|
KEY_F3: () => KEY_F3,
|
|
162
|
+
KEY_HOME: () => KEY_HOME,
|
|
161
163
|
KEY_LEFT: () => KEY_LEFT,
|
|
162
164
|
KEY_META: () => KEY_META,
|
|
163
165
|
KEY_RIGHT: () => KEY_RIGHT,
|
|
@@ -189,11 +191,11 @@ __export(constants_exports, {
|
|
|
189
191
|
globalWindow: () => globalWindow,
|
|
190
192
|
lang: () => lang
|
|
191
193
|
});
|
|
192
|
-
var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEPAGE, SET_TEST, TOKENS, INVISIBLE_SPACE, NBSP_SPACE, INVISIBLE_SPACE_REG_EXP, INVISIBLE_SPACE_REG_EXP_END, INVISIBLE_SPACE_REG_EXP_START, SPACE_REG_EXP, SPACE_REG_EXP_START, SPACE_REG_EXP_END, globalWindow, globalDocument, IS_BLOCK, IS_INLINE, LIST_TAGS, __UNSEPARABLE_TAGS, INSEPARABLE_TAGS, NO_EMPTY_TAGS, KEY_META, KEY_BACKSPACE, KEY_TAB, KEY_ENTER, KEY_ESC, KEY_ALT, KEY_LEFT, KEY_UP, KEY_RIGHT, KEY_DOWN, KEY_SPACE, KEY_DELETE, KEY_F3, NEARBY, ACCURACY, COMMAND_KEYS, BR, PARAGRAPH, MODE_WYSIWYG, MODE_SOURCE, MODE_SPLIT, IS_IE, TEXT_PLAIN, TEXT_HTML, TEXT_RTF, MARKER_CLASS, EMULATE_DBLCLICK_TIMEOUT, INSERT_AS_HTML, INSERT_CLEAR_HTML, INSERT_AS_TEXT, INSERT_ONLY_TEXT, SAFE_COUNT_CHANGE_CALL, IS_MAC, KEY_ALIASES, removeScriptName, basePath, isMin, BASE_PATH, BASE_PATH_IS_MIN, TEMP_ATTR, lang, CLIPBOARD_ID, SOURCE_CONSUMER, PASSIVE_EVENTS;
|
|
194
|
+
var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEPAGE, SET_TEST, TOKENS, INVISIBLE_SPACE, NBSP_SPACE, INVISIBLE_SPACE_REG_EXP, INVISIBLE_SPACE_REG_EXP_END, INVISIBLE_SPACE_REG_EXP_START, SPACE_REG_EXP, SPACE_REG_EXP_START, SPACE_REG_EXP_END, globalWindow, globalDocument, IS_BLOCK, IS_INLINE, LIST_TAGS, __UNSEPARABLE_TAGS, INSEPARABLE_TAGS, NO_EMPTY_TAGS, KEY_META, KEY_BACKSPACE, KEY_TAB, KEY_ENTER, KEY_ESC, KEY_ALT, KEY_HOME, KEY_END, KEY_LEFT, KEY_UP, KEY_RIGHT, KEY_DOWN, KEY_SPACE, KEY_DELETE, KEY_F3, NEARBY, ACCURACY, COMMAND_KEYS, BR, PARAGRAPH, MODE_WYSIWYG, MODE_SOURCE, MODE_SPLIT, IS_IE, TEXT_PLAIN, TEXT_HTML, TEXT_RTF, MARKER_CLASS, EMULATE_DBLCLICK_TIMEOUT, INSERT_AS_HTML, INSERT_CLEAR_HTML, INSERT_AS_TEXT, INSERT_ONLY_TEXT, SAFE_COUNT_CHANGE_CALL, IS_MAC, KEY_ALIASES, removeScriptName, basePath, isMin, BASE_PATH, BASE_PATH_IS_MIN, TEMP_ATTR, lang, CLIPBOARD_ID, SOURCE_CONSUMER, PASSIVE_EVENTS;
|
|
193
195
|
var init_constants = __esm({
|
|
194
196
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
195
197
|
"use strict";
|
|
196
|
-
APP_VERSION = "4.15.
|
|
198
|
+
APP_VERSION = "4.15.13";
|
|
197
199
|
ES = "es2020";
|
|
198
200
|
IS_ES_MODERN = true;
|
|
199
201
|
IS_ES_NEXT = true;
|
|
@@ -240,6 +242,8 @@ var init_constants = __esm({
|
|
|
240
242
|
KEY_ENTER = "Enter";
|
|
241
243
|
KEY_ESC = "Escape";
|
|
242
244
|
KEY_ALT = "Alt";
|
|
245
|
+
KEY_HOME = "Home";
|
|
246
|
+
KEY_END = "End";
|
|
243
247
|
KEY_LEFT = "ArrowLeft";
|
|
244
248
|
KEY_UP = "ArrowUp";
|
|
245
249
|
KEY_RIGHT = "ArrowRight";
|
|
@@ -7908,7 +7912,7 @@ var require_tab = __commonJS({
|
|
|
7908
7912
|
init_plugin2();
|
|
7909
7913
|
init_config3();
|
|
7910
7914
|
init_cases();
|
|
7911
|
-
var
|
|
7915
|
+
var __decorate74 = exports && exports.__decorate || function(decorators, target, key3, desc) {
|
|
7912
7916
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
7913
7917
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7914
7918
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -7941,10 +7945,10 @@ var require_tab = __commonJS({
|
|
|
7941
7945
|
beforeDestruct(jodit) {
|
|
7942
7946
|
}
|
|
7943
7947
|
};
|
|
7944
|
-
|
|
7948
|
+
__decorate74([
|
|
7945
7949
|
watch(":keydown.tab")
|
|
7946
7950
|
], tab.prototype, "__onTab", null);
|
|
7947
|
-
|
|
7951
|
+
__decorate74([
|
|
7948
7952
|
watch(":beforeCommand.tab")
|
|
7949
7953
|
], tab.prototype, "__onCommand", null);
|
|
7950
7954
|
pluginSystem.add("tab", tab);
|
|
@@ -7973,7 +7977,7 @@ var require_wrap_nodes = __commonJS({
|
|
|
7973
7977
|
init_is_string();
|
|
7974
7978
|
init_plugin2();
|
|
7975
7979
|
init_config4();
|
|
7976
|
-
var
|
|
7980
|
+
var __decorate74 = exports && exports.__decorate || function(decorators, target, key3, desc) {
|
|
7977
7981
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
7978
7982
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
7979
7983
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -8060,10 +8064,10 @@ var require_wrap_nodes = __commonJS({
|
|
|
8060
8064
|
jodit.e.fire("internalChange");
|
|
8061
8065
|
}
|
|
8062
8066
|
};
|
|
8063
|
-
|
|
8067
|
+
__decorate74([
|
|
8064
8068
|
autobind
|
|
8065
8069
|
], wrapNodes.prototype, "postProcessSetEditorValue", null);
|
|
8066
|
-
|
|
8070
|
+
__decorate74([
|
|
8067
8071
|
autobind
|
|
8068
8072
|
], wrapNodes.prototype, "preprocessInput", null);
|
|
8069
8073
|
function checkAloneListLeaf(child, jodit) {
|
|
@@ -8228,7 +8232,7 @@ var require_dtd = __commonJS({
|
|
|
8228
8232
|
init_config5();
|
|
8229
8233
|
init_after_insert();
|
|
8230
8234
|
init_before_insert();
|
|
8231
|
-
var
|
|
8235
|
+
var __decorate74 = exports && exports.__decorate || function(decorators, target, key3, desc) {
|
|
8232
8236
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
8233
8237
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8234
8238
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -8256,10 +8260,10 @@ var require_dtd = __commonJS({
|
|
|
8256
8260
|
});
|
|
8257
8261
|
}
|
|
8258
8262
|
};
|
|
8259
|
-
|
|
8263
|
+
__decorate74([
|
|
8260
8264
|
watch(":beforeInsertNode")
|
|
8261
8265
|
], dtd.prototype, "__onBeforeInsertNode", null);
|
|
8262
|
-
|
|
8266
|
+
__decorate74([
|
|
8263
8267
|
watch(":afterInsertNode")
|
|
8264
8268
|
], dtd.prototype, "__onAfterInsertNode", null);
|
|
8265
8269
|
pluginSystem.add("dtd", dtd);
|
|
@@ -17321,6 +17325,15 @@ var __decorate32 = function(decorators, target, key3, desc) {
|
|
|
17321
17325
|
r71 = (c69 < 3 ? d55(r71) : c69 > 3 ? d55(target, key3, r71) : d55(target, key3)) || r71;
|
|
17322
17326
|
return c69 > 3 && r71 && Object.defineProperty(target, key3, r71), r71;
|
|
17323
17327
|
};
|
|
17328
|
+
var INPUT_TAGS = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
|
|
17329
|
+
var FOCUSABLE_SELECTOR = [
|
|
17330
|
+
"button:not([disabled])",
|
|
17331
|
+
"a[href]",
|
|
17332
|
+
'input:not([disabled]):not([type="hidden"])',
|
|
17333
|
+
"select:not([disabled])",
|
|
17334
|
+
"textarea:not([disabled])",
|
|
17335
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
17336
|
+
].join(",");
|
|
17324
17337
|
var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
17325
17338
|
className() {
|
|
17326
17339
|
return "ToolbarButton";
|
|
@@ -17549,12 +17562,81 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
|
17549
17562
|
}
|
|
17550
17563
|
}
|
|
17551
17564
|
onTriggerKeyDown(e44) {
|
|
17552
|
-
if (this.state.disabled
|
|
17565
|
+
if (this.state.disabled) {
|
|
17566
|
+
return;
|
|
17567
|
+
}
|
|
17568
|
+
if (e44.key === KEY_DOWN) {
|
|
17569
|
+
this.onButtonKeyDown(e44);
|
|
17570
|
+
return;
|
|
17571
|
+
}
|
|
17572
|
+
if (![KEY_ENTER, KEY_SPACE, " "].includes(e44.key)) {
|
|
17553
17573
|
return;
|
|
17554
17574
|
}
|
|
17555
17575
|
e44.preventDefault();
|
|
17556
17576
|
this.trigger.click();
|
|
17557
17577
|
}
|
|
17578
|
+
/**
|
|
17579
|
+
* `ArrowDown` on a button with a trigger opens its dropdown and moves the
|
|
17580
|
+
* focus into it, like the WAI-ARIA menu button pattern
|
|
17581
|
+
*/
|
|
17582
|
+
onButtonKeyDown(e44) {
|
|
17583
|
+
var _a2;
|
|
17584
|
+
if (e44.key !== KEY_DOWN || this.state.disabled || !this.state.hasTrigger || e44.altKey || e44.ctrlKey || e44.metaKey) {
|
|
17585
|
+
return;
|
|
17586
|
+
}
|
|
17587
|
+
e44.preventDefault();
|
|
17588
|
+
e44.stopPropagation();
|
|
17589
|
+
if (!this.openedPopup) {
|
|
17590
|
+
this.trigger.click();
|
|
17591
|
+
}
|
|
17592
|
+
(_a2 = this.__popupFocusables()[0]) === null || _a2 === void 0 ? void 0 : _a2.focus();
|
|
17593
|
+
}
|
|
17594
|
+
/**
|
|
17595
|
+
* Inside the dropdown: `ArrowDown`/`ArrowUp` walk the items, `Escape` and
|
|
17596
|
+
* `ArrowUp` on the first item close it and give the focus back to the button
|
|
17597
|
+
*/
|
|
17598
|
+
__onPopupKeyDown(e44) {
|
|
17599
|
+
if (!this.openedPopup || e44.altKey || e44.ctrlKey || e44.metaKey) {
|
|
17600
|
+
return;
|
|
17601
|
+
}
|
|
17602
|
+
const target = e44.target;
|
|
17603
|
+
if (Dom.isTag(target, INPUT_TAGS) && e44.key !== KEY_ESC) {
|
|
17604
|
+
return;
|
|
17605
|
+
}
|
|
17606
|
+
const items = this.__popupFocusables(), index = items.indexOf(target);
|
|
17607
|
+
switch (e44.key) {
|
|
17608
|
+
case KEY_ESC:
|
|
17609
|
+
this.__closePopup();
|
|
17610
|
+
break;
|
|
17611
|
+
case KEY_UP:
|
|
17612
|
+
if (index <= 0) {
|
|
17613
|
+
this.__closePopup();
|
|
17614
|
+
} else {
|
|
17615
|
+
items[index - 1].focus();
|
|
17616
|
+
}
|
|
17617
|
+
break;
|
|
17618
|
+
case KEY_DOWN:
|
|
17619
|
+
if (!items.length) {
|
|
17620
|
+
return;
|
|
17621
|
+
}
|
|
17622
|
+
items[(index + 1) % items.length].focus();
|
|
17623
|
+
break;
|
|
17624
|
+
default:
|
|
17625
|
+
return;
|
|
17626
|
+
}
|
|
17627
|
+
e44.preventDefault();
|
|
17628
|
+
e44.stopPropagation();
|
|
17629
|
+
}
|
|
17630
|
+
/**
|
|
17631
|
+
* Visible controls of the opened dropdown that can take the focus
|
|
17632
|
+
*/
|
|
17633
|
+
__popupFocusables() {
|
|
17634
|
+
const popup = this.openedPopup;
|
|
17635
|
+
if (!popup) {
|
|
17636
|
+
return [];
|
|
17637
|
+
}
|
|
17638
|
+
return Array.from(popup.container.querySelectorAll(FOCUSABLE_SELECTOR)).filter((elm) => Boolean(elm.offsetParent));
|
|
17639
|
+
}
|
|
17558
17640
|
/**
|
|
17559
17641
|
* Create an open popup list
|
|
17560
17642
|
*/
|
|
@@ -17621,7 +17703,7 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
|
17621
17703
|
openPopup() {
|
|
17622
17704
|
this.__closePopup();
|
|
17623
17705
|
this.openedPopup = new Popup(this.j, false);
|
|
17624
|
-
this.j.e.on(this.ow, "mousedown touchstart", this.onOutsideClick).on("escape closeAllPopups", this.onOutsideClick);
|
|
17706
|
+
this.j.e.on(this.ow, "mousedown touchstart", this.onOutsideClick).on("escape closeAllPopups", this.onOutsideClick).on(this.openedPopup.container, "keydown", this.__onPopupKeyDown);
|
|
17625
17707
|
return this.openedPopup;
|
|
17626
17708
|
}
|
|
17627
17709
|
__closePopup() {
|
|
@@ -17631,12 +17713,16 @@ var ToolbarButton = class ToolbarButton2 extends UIButton {
|
|
|
17631
17713
|
}
|
|
17632
17714
|
this.openedPopup = null;
|
|
17633
17715
|
this.j.e.off(this.ow, "mousedown touchstart", this.onOutsideClick).off("escape closeAllPopups", this.onOutsideClick);
|
|
17716
|
+
const { activeElement } = this.od, hadFocus = activeElement && Dom.isOrContains(popup.container, activeElement);
|
|
17634
17717
|
this.state.activated = false;
|
|
17635
17718
|
popup.close();
|
|
17636
17719
|
popup.destruct();
|
|
17637
17720
|
if (this.trigger) {
|
|
17638
17721
|
attr(this.trigger, "aria-expanded", false);
|
|
17639
17722
|
}
|
|
17723
|
+
if (hadFocus) {
|
|
17724
|
+
this.focus();
|
|
17725
|
+
}
|
|
17640
17726
|
}
|
|
17641
17727
|
/**
|
|
17642
17728
|
* Click handler
|
|
@@ -17690,6 +17776,12 @@ __decorate32([
|
|
|
17690
17776
|
__decorate32([
|
|
17691
17777
|
watch("trigger:keydown")
|
|
17692
17778
|
], ToolbarButton.prototype, "onTriggerKeyDown", null);
|
|
17779
|
+
__decorate32([
|
|
17780
|
+
watch("button:keydown")
|
|
17781
|
+
], ToolbarButton.prototype, "onButtonKeyDown", null);
|
|
17782
|
+
__decorate32([
|
|
17783
|
+
autobind
|
|
17784
|
+
], ToolbarButton.prototype, "__onPopupKeyDown", null);
|
|
17693
17785
|
__decorate32([
|
|
17694
17786
|
autobind
|
|
17695
17787
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
@@ -20392,10 +20484,32 @@ var Selection = class {
|
|
|
20392
20484
|
if (!Dom.up(node, (elm) => elm === this.area || elm && elm.parentNode === this.area, this.area)) {
|
|
20393
20485
|
throw error("Node element must be in editor");
|
|
20394
20486
|
}
|
|
20487
|
+
const target = !inward && this.__closestNotEditable(node) || node;
|
|
20395
20488
|
const range = this.createRange();
|
|
20396
|
-
range[inward ||
|
|
20489
|
+
range[inward || target === this.area ? "selectNodeContents" : "selectNode"](target);
|
|
20397
20490
|
return this.selectRange(range);
|
|
20398
20491
|
}
|
|
20492
|
+
/**
|
|
20493
|
+
* The outermost `contenteditable="false"` ancestor of the node inside the
|
|
20494
|
+
* editable area, if there is one.
|
|
20495
|
+
*
|
|
20496
|
+
* A range can be put inside such an island (e.g. on an `<img>` wrapped in a
|
|
20497
|
+
* `<picture contenteditable="false">`), but the browser cannot place a caret
|
|
20498
|
+
* there: the arrow keys then have nothing to move from and the selection
|
|
20499
|
+
* cannot be escaped. Selecting the island itself keeps the range in editable
|
|
20500
|
+
* content, so the caret can step over it. See #1184
|
|
20501
|
+
*/
|
|
20502
|
+
__closestNotEditable(node) {
|
|
20503
|
+
const { area } = this;
|
|
20504
|
+
let result = null, elm = node.parentNode;
|
|
20505
|
+
while (elm && elm !== area && area.contains(elm)) {
|
|
20506
|
+
if (Dom.isElement(elm) && elm.getAttribute("contenteditable") === "false") {
|
|
20507
|
+
result = elm;
|
|
20508
|
+
}
|
|
20509
|
+
elm = elm.parentNode;
|
|
20510
|
+
}
|
|
20511
|
+
return result;
|
|
20512
|
+
}
|
|
20399
20513
|
/**
|
|
20400
20514
|
* Return current selected HTML
|
|
20401
20515
|
* @example
|
|
@@ -33275,6 +33389,107 @@ function findCell(editor, key3) {
|
|
|
33275
33389
|
return cell;
|
|
33276
33390
|
}
|
|
33277
33391
|
|
|
33392
|
+
// node_modules/jodit/esm/plugins/toolbar-navigation/toolbar-navigation.js
|
|
33393
|
+
init_constants();
|
|
33394
|
+
init_autobind();
|
|
33395
|
+
init_watch();
|
|
33396
|
+
init_dom();
|
|
33397
|
+
init_global2();
|
|
33398
|
+
init_attr();
|
|
33399
|
+
init_plugin2();
|
|
33400
|
+
var __decorate70 = function(decorators, target, key3, desc) {
|
|
33401
|
+
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
33402
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
33403
|
+
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
33404
|
+
else
|
|
33405
|
+
for (var i55 = decorators.length - 1; i55 >= 0; i55--)
|
|
33406
|
+
if (d55 = decorators[i55])
|
|
33407
|
+
r71 = (c69 < 3 ? d55(r71) : c69 > 3 ? d55(target, key3, r71) : d55(target, key3)) || r71;
|
|
33408
|
+
return c69 > 3 && r71 && Object.defineProperty(target, key3, r71), r71;
|
|
33409
|
+
};
|
|
33410
|
+
var INPUT_TAGS2 = /* @__PURE__ */ new Set(["input", "textarea", "select"]);
|
|
33411
|
+
var toolbarNavigation = class extends Plugin {
|
|
33412
|
+
/** @override */
|
|
33413
|
+
afterInit(jodit) {
|
|
33414
|
+
jodit.registerCommand("focusToolbar", {
|
|
33415
|
+
hotkeys: "alt+f10",
|
|
33416
|
+
exec: this.focusToolbar
|
|
33417
|
+
});
|
|
33418
|
+
}
|
|
33419
|
+
/** @override */
|
|
33420
|
+
beforeDestruct() {
|
|
33421
|
+
}
|
|
33422
|
+
/**
|
|
33423
|
+
* Moves the focus to the first button of the toolbar.
|
|
33424
|
+
*
|
|
33425
|
+
* Bound to `Alt+F10` by default; remap it like any other command:
|
|
33426
|
+
* `commandToHotkeys: { focusToolbar: 'alt+0' }`
|
|
33427
|
+
*/
|
|
33428
|
+
focusToolbar() {
|
|
33429
|
+
const [first] = this.__buttons();
|
|
33430
|
+
first === null || first === void 0 ? void 0 : first.focus();
|
|
33431
|
+
return false;
|
|
33432
|
+
}
|
|
33433
|
+
/**
|
|
33434
|
+
* Arrow keys / `Home` / `End` walk the buttons, `Escape` leaves the toolbar
|
|
33435
|
+
*/
|
|
33436
|
+
onKeyDown(e44) {
|
|
33437
|
+
if (e44.defaultPrevented || e44.altKey || e44.ctrlKey || e44.metaKey) {
|
|
33438
|
+
return;
|
|
33439
|
+
}
|
|
33440
|
+
const target = e44.target;
|
|
33441
|
+
if (Dom.isTag(target, INPUT_TAGS2) || Dom.isHTMLElement(target) && target.isContentEditable) {
|
|
33442
|
+
return;
|
|
33443
|
+
}
|
|
33444
|
+
const buttons = this.__buttons();
|
|
33445
|
+
if (!buttons.length) {
|
|
33446
|
+
return;
|
|
33447
|
+
}
|
|
33448
|
+
switch (e44.key) {
|
|
33449
|
+
case KEY_ESC:
|
|
33450
|
+
this.j.s.focus();
|
|
33451
|
+
break;
|
|
33452
|
+
case KEY_HOME:
|
|
33453
|
+
buttons[0].focus();
|
|
33454
|
+
break;
|
|
33455
|
+
case KEY_END:
|
|
33456
|
+
buttons[buttons.length - 1].focus();
|
|
33457
|
+
break;
|
|
33458
|
+
case KEY_LEFT:
|
|
33459
|
+
case KEY_RIGHT: {
|
|
33460
|
+
const index = buttons.findIndex((button2) => button2.container.contains(target));
|
|
33461
|
+
if (index === -1) {
|
|
33462
|
+
return;
|
|
33463
|
+
}
|
|
33464
|
+
const forward = e44.key === KEY_RIGHT !== this.__isRtl(), next = index + (forward ? 1 : -1);
|
|
33465
|
+
buttons[(next + buttons.length) % buttons.length].focus();
|
|
33466
|
+
break;
|
|
33467
|
+
}
|
|
33468
|
+
default:
|
|
33469
|
+
return;
|
|
33470
|
+
}
|
|
33471
|
+
e44.preventDefault();
|
|
33472
|
+
e44.stopPropagation();
|
|
33473
|
+
return false;
|
|
33474
|
+
}
|
|
33475
|
+
/**
|
|
33476
|
+
* Toolbar buttons that can take the focus right now
|
|
33477
|
+
*/
|
|
33478
|
+
__buttons() {
|
|
33479
|
+
return this.j.toolbar.buttons.filter((button2) => !button2.state.disabled && button2.container.isConnected);
|
|
33480
|
+
}
|
|
33481
|
+
__isRtl() {
|
|
33482
|
+
return attr(this.j.toolbar.container, "dir") === "rtl";
|
|
33483
|
+
}
|
|
33484
|
+
};
|
|
33485
|
+
__decorate70([
|
|
33486
|
+
autobind
|
|
33487
|
+
], toolbarNavigation.prototype, "focusToolbar", null);
|
|
33488
|
+
__decorate70([
|
|
33489
|
+
watch("j.toolbar.container:keydown.toolbar-navigation")
|
|
33490
|
+
], toolbarNavigation.prototype, "onKeyDown", null);
|
|
33491
|
+
pluginSystem.add("toolbarNavigation", toolbarNavigation);
|
|
33492
|
+
|
|
33278
33493
|
// node_modules/jodit/esm/plugins/video/video.js
|
|
33279
33494
|
init_global2();
|
|
33280
33495
|
|
|
@@ -33576,7 +33791,7 @@ function closeSound(owner) {
|
|
|
33576
33791
|
}
|
|
33577
33792
|
|
|
33578
33793
|
// node_modules/jodit/esm/plugins/speech-recognize/helpers/recognize-manager.js
|
|
33579
|
-
var
|
|
33794
|
+
var __decorate71 = function(decorators, target, key3, desc) {
|
|
33580
33795
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
33581
33796
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
33582
33797
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -33738,13 +33953,13 @@ var RecognizeManager = class _RecognizeManager extends Eventify {
|
|
|
33738
33953
|
}
|
|
33739
33954
|
};
|
|
33740
33955
|
RecognizeManager._instances = /* @__PURE__ */ new Set();
|
|
33741
|
-
|
|
33956
|
+
__decorate71([
|
|
33742
33957
|
autobind
|
|
33743
33958
|
], RecognizeManager.prototype, "_onResults", null);
|
|
33744
|
-
|
|
33959
|
+
__decorate71([
|
|
33745
33960
|
autobind
|
|
33746
33961
|
], RecognizeManager.prototype, "_onProgress", null);
|
|
33747
|
-
|
|
33962
|
+
__decorate71([
|
|
33748
33963
|
autobind
|
|
33749
33964
|
], RecognizeManager.prototype, "_onError", null);
|
|
33750
33965
|
|
|
@@ -33851,7 +34066,7 @@ init_global2();
|
|
|
33851
34066
|
init_helpers();
|
|
33852
34067
|
init_css();
|
|
33853
34068
|
init_config();
|
|
33854
|
-
var
|
|
34069
|
+
var __decorate72 = function(decorators, target, key3, desc) {
|
|
33855
34070
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
33856
34071
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
33857
34072
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -34258,13 +34473,20 @@ var Jodit2 = Jodit_1 = class Jodit3 extends ViewWithToolbar {
|
|
|
34258
34473
|
* Return source element value
|
|
34259
34474
|
*/
|
|
34260
34475
|
getElementValue() {
|
|
34476
|
+
if (this.element === this.container && this.__inlineElementValue !== void 0) {
|
|
34477
|
+
return this.__inlineElementValue;
|
|
34478
|
+
}
|
|
34261
34479
|
return this.element.value !== void 0 ? this.element.value : this.element.innerHTML;
|
|
34262
34480
|
}
|
|
34263
34481
|
__setElementValue(value) {
|
|
34264
34482
|
if (!isString(value)) {
|
|
34265
34483
|
throw error("value must be string");
|
|
34266
34484
|
}
|
|
34267
|
-
if (this.element
|
|
34485
|
+
if (this.element === this.container) {
|
|
34486
|
+
this.__inlineElementValue = value;
|
|
34487
|
+
return;
|
|
34488
|
+
}
|
|
34489
|
+
if (value !== this.getElementValue()) {
|
|
34268
34490
|
const data = { value };
|
|
34269
34491
|
const res = this.e.fire("beforeSetElementValue", data);
|
|
34270
34492
|
callPromise(res, () => {
|
|
@@ -35016,31 +35238,31 @@ Jodit2.lang = lang;
|
|
|
35016
35238
|
Jodit2.core = {
|
|
35017
35239
|
Plugin
|
|
35018
35240
|
};
|
|
35019
|
-
|
|
35241
|
+
__decorate72([
|
|
35020
35242
|
cache
|
|
35021
35243
|
], Jodit2.prototype, "createInside", null);
|
|
35022
|
-
|
|
35244
|
+
__decorate72([
|
|
35023
35245
|
cache
|
|
35024
35246
|
], Jodit2.prototype, "message", null);
|
|
35025
|
-
|
|
35247
|
+
__decorate72([
|
|
35026
35248
|
cache
|
|
35027
35249
|
], Jodit2.prototype, "s", null);
|
|
35028
|
-
|
|
35250
|
+
__decorate72([
|
|
35029
35251
|
cache
|
|
35030
35252
|
], Jodit2.prototype, "uploader", null);
|
|
35031
|
-
|
|
35253
|
+
__decorate72([
|
|
35032
35254
|
cache
|
|
35033
35255
|
], Jodit2.prototype, "filebrowser", null);
|
|
35034
|
-
|
|
35256
|
+
__decorate72([
|
|
35035
35257
|
throttle()
|
|
35036
35258
|
], Jodit2.prototype, "synchronizeValues", null);
|
|
35037
|
-
|
|
35259
|
+
__decorate72([
|
|
35038
35260
|
watch(":internalChange")
|
|
35039
35261
|
], Jodit2.prototype, "updateElementValue", null);
|
|
35040
|
-
|
|
35262
|
+
__decorate72([
|
|
35041
35263
|
autobind
|
|
35042
35264
|
], Jodit2.prototype, "__prepareWYSIWYGEditor", null);
|
|
35043
|
-
Jodit2 = Jodit_1 =
|
|
35265
|
+
Jodit2 = Jodit_1 = __decorate72([
|
|
35044
35266
|
derive(Dlgs)
|
|
35045
35267
|
], Jodit2);
|
|
35046
35268
|
function addClassNames(className, elm) {
|
|
@@ -35112,7 +35334,7 @@ var zh_cn5 = __toESM(require_zh_cn5());
|
|
|
35112
35334
|
var zh_tw5 = __toESM(require_zh_tw5());
|
|
35113
35335
|
|
|
35114
35336
|
// node_modules/jodit/esm/plugins/speech-recognize/speech-recognize.js
|
|
35115
|
-
var
|
|
35337
|
+
var __decorate73 = function(decorators, target, key3, desc) {
|
|
35116
35338
|
var c69 = arguments.length, r71 = c69 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key3) : desc, d55;
|
|
35117
35339
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
35118
35340
|
r71 = Reflect.decorate(decorators, target, key3, desc);
|
|
@@ -35193,10 +35415,10 @@ var SpeechRecognizeNative = class extends Plugin {
|
|
|
35193
35415
|
return false;
|
|
35194
35416
|
}
|
|
35195
35417
|
};
|
|
35196
|
-
|
|
35418
|
+
__decorate73([
|
|
35197
35419
|
watch(":speechRecognizeProgressResult")
|
|
35198
35420
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
35199
|
-
|
|
35421
|
+
__decorate73([
|
|
35200
35422
|
watch(":speechRecognizeResult")
|
|
35201
35423
|
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
35202
35424
|
Jodit2.plugins.add("speech-recognize", SpeechRecognizeNative);
|
|
@@ -55870,6 +56092,7 @@ jodit/esm/plugins/ai-assistant/ai-assistant.js:
|
|
|
55870
56092
|
jodit/esm/plugins/table/config.js:
|
|
55871
56093
|
jodit/esm/plugins/table/table.js:
|
|
55872
56094
|
jodit/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js:
|
|
56095
|
+
jodit/esm/plugins/toolbar-navigation/toolbar-navigation.js:
|
|
55873
56096
|
jodit/esm/plugins/video/config.js:
|
|
55874
56097
|
jodit/esm/plugins/video/video.js:
|
|
55875
56098
|
jodit/esm/plugins/xpath/config.js:
|