jodit 4.20.5 → 4.21.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/CHANGELOG.md +28 -0
- package/README.md +0 -1
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +12 -12
- package/es2015/jodit.js +558 -210
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +12 -12
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +2 -2
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +12 -12
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +12 -12
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +17 -17
- package/es2021/jodit.js +550 -203
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +17 -17
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +2 -2
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +550 -203
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +32 -32
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +2 -2
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +595 -177
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +2 -2
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +1 -29
- package/es5/polyfills.min.js +2 -2
- package/esm/config.d.ts +18 -0
- package/esm/core/constants.d.ts +6 -0
- package/esm/core/constants.js +18 -1
- package/esm/core/helpers/html/clean-from-word.d.ts +3 -1
- package/esm/core/helpers/html/clean-from-word.js +87 -11
- package/esm/core/helpers/utils/selector.js +4 -3
- package/esm/plugins/hr/hr.js +290 -1
- package/esm/plugins/inline-popup/config/config.js +2 -0
- package/esm/plugins/inline-popup/config/items/hr.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/hr.js +15 -0
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
- package/esm/plugins/link/config.d.ts +7 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.js +20 -16
- package/esm/plugins/paste/config.d.ts +5 -0
- package/esm/plugins/paste/config.js +2 -1
- package/esm/plugins/paste/paste.js +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.js +2 -2
- package/esm/plugins/symbols/config.d.ts +6 -0
- package/esm/plugins/symbols/config.js +1 -0
- package/esm/plugins/symbols/symbols.d.ts +0 -1
- package/esm/plugins/symbols/symbols.js +12 -10
- package/package.json +1 -1
- package/types/config.d.ts +18 -0
- package/types/core/constants.d.ts +6 -0
- package/types/core/helpers/html/clean-from-word.d.ts +3 -1
- package/types/plugins/inline-popup/config/items/hr.d.ts +11 -0
- package/types/plugins/link/config.d.ts +7 -0
- package/types/plugins/paste/config.d.ts +5 -0
- package/types/plugins/symbols/config.d.ts +6 -0
- package/types/plugins/symbols/symbols.d.ts +0 -1
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.21.1
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1139,7 +1139,6 @@ Config.prototype.controls = {};
|
|
|
1139
1139
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(85932);
|
|
1140
1140
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18303);
|
|
1141
1141
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(28712);
|
|
1142
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_12__);
|
|
1143
1142
|
/* harmony import */ var jodit_core_helpers_utils_error_errors_abort_error__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(14228);
|
|
1144
1143
|
/*!
|
|
1145
1144
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -1815,6 +1814,34 @@ class ViewComponent extends _component__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
|
1815
1814
|
"use strict";
|
|
1816
1815
|
__webpack_require__.r(__webpack_exports__);
|
|
1817
1816
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1817
|
+
/* harmony export */ ACCURACY: function() { return /* binding */ ACCURACY; },
|
|
1818
|
+
/* harmony export */ APP_VERSION: function() { return /* binding */ APP_VERSION; },
|
|
1819
|
+
/* harmony export */ BASE_PATH: function() { return /* binding */ BASE_PATH; },
|
|
1820
|
+
/* harmony export */ BASE_PATH_IS_MIN: function() { return /* binding */ BASE_PATH_IS_MIN; },
|
|
1821
|
+
/* harmony export */ BR: function() { return /* binding */ BR; },
|
|
1822
|
+
/* harmony export */ CLIPBOARD_ID: function() { return /* binding */ CLIPBOARD_ID; },
|
|
1823
|
+
/* harmony export */ COMMAND_KEYS: function() { return /* binding */ COMMAND_KEYS; },
|
|
1824
|
+
/* harmony export */ EMULATE_DBLCLICK_TIMEOUT: function() { return /* binding */ EMULATE_DBLCLICK_TIMEOUT; },
|
|
1825
|
+
/* harmony export */ ERROR_CODE_CONFLICT: function() { return /* binding */ ERROR_CODE_CONFLICT; },
|
|
1826
|
+
/* harmony export */ ES: function() { return /* binding */ ES; },
|
|
1827
|
+
/* harmony export */ FAT_MODE: function() { return /* binding */ FAT_MODE; },
|
|
1828
|
+
/* harmony export */ HOMEPAGE: function() { return /* binding */ HOMEPAGE; },
|
|
1829
|
+
/* harmony export */ INSEPARABLE_TAGS: function() { return /* binding */ INSEPARABLE_TAGS; },
|
|
1830
|
+
/* harmony export */ INSERT_AS_HTML: function() { return /* binding */ INSERT_AS_HTML; },
|
|
1831
|
+
/* harmony export */ INSERT_AS_TEXT: function() { return /* binding */ INSERT_AS_TEXT; },
|
|
1832
|
+
/* harmony export */ INSERT_CLEAR_HTML: function() { return /* binding */ INSERT_CLEAR_HTML; },
|
|
1833
|
+
/* harmony export */ INSERT_ONLY_TEXT: function() { return /* binding */ INSERT_ONLY_TEXT; },
|
|
1834
|
+
/* harmony export */ INVISIBLE_SPACE: function() { return /* binding */ INVISIBLE_SPACE; },
|
|
1835
|
+
/* harmony export */ INVISIBLE_SPACE_REG_EXP: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP; },
|
|
1836
|
+
/* harmony export */ INVISIBLE_SPACE_REG_EXP_END: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP_END; },
|
|
1837
|
+
/* harmony export */ INVISIBLE_SPACE_REG_EXP_START: function() { return /* binding */ INVISIBLE_SPACE_REG_EXP_START; },
|
|
1838
|
+
/* harmony export */ IS_BLOCK: function() { return /* binding */ IS_BLOCK; },
|
|
1839
|
+
/* harmony export */ IS_ES_MODERN: function() { return /* binding */ IS_ES_MODERN; },
|
|
1840
|
+
/* harmony export */ IS_ES_NEXT: function() { return /* binding */ IS_ES_NEXT; },
|
|
1841
|
+
/* harmony export */ IS_IE: function() { return /* binding */ IS_IE; },
|
|
1842
|
+
/* harmony export */ IS_INLINE: function() { return /* binding */ IS_INLINE; },
|
|
1843
|
+
/* harmony export */ IS_MAC: function() { return /* binding */ IS_MAC; },
|
|
1844
|
+
/* harmony export */ IS_PROD: function() { return /* binding */ IS_PROD; },
|
|
1818
1845
|
/* harmony export */ IS_TEST: function() { return /* binding */ IS_TEST; }
|
|
1819
1846
|
/* harmony export */ });
|
|
1820
1847
|
/*!
|
|
@@ -1830,7 +1857,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1830
1857
|
* ```
|
|
1831
1858
|
* @packageDocumentation
|
|
1832
1859
|
* @module constants
|
|
1833
|
-
*/ const APP_VERSION = "4.
|
|
1860
|
+
*/ const APP_VERSION = "4.21.1";
|
|
1834
1861
|
// prettier-ignore
|
|
1835
1862
|
const ES = "es2015";
|
|
1836
1863
|
const IS_ES_MODERN = true;
|
|
@@ -1968,6 +1995,22 @@ const EMULATE_DBLCLICK_TIMEOUT = 300;
|
|
|
1968
1995
|
* test
|
|
1969
1996
|
* ```
|
|
1970
1997
|
*/ const INSERT_ONLY_TEXT = 'insert_only_text';
|
|
1998
|
+
/**
|
|
1999
|
+
* The attributes a clean paste ([[INSERT_CLEAR_HTML]], and Clean for HTML from
|
|
2000
|
+
* Word) keeps by default: what links and media need, and what carries a table's
|
|
2001
|
+
* structure or the meaning of an image or a link
|
|
2002
|
+
*/ const PASTE_KEEP_ATTRIBUTES = [
|
|
2003
|
+
'src',
|
|
2004
|
+
'href',
|
|
2005
|
+
'rel',
|
|
2006
|
+
'content',
|
|
2007
|
+
'alt',
|
|
2008
|
+
'title',
|
|
2009
|
+
'colspan',
|
|
2010
|
+
'rowspan',
|
|
2011
|
+
'scope',
|
|
2012
|
+
'target'
|
|
2013
|
+
];
|
|
1971
2014
|
const SAFE_COUNT_CHANGE_CALL = 10;
|
|
1972
2015
|
// Connector answer code for a file name that is already taken (same as the HTTP status)
|
|
1973
2016
|
const ERROR_CODE_CONFLICT = 409;
|
|
@@ -2046,34 +2089,6 @@ const PASSIVE_EVENTS = new Set([
|
|
|
2046
2089
|
]);
|
|
2047
2090
|
|
|
2048
2091
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
2049
|
-
/* harmony export */ "ACCURACY", 0, /* binding */ ACCURACY,
|
|
2050
|
-
/* harmony export */ "APP_VERSION", 0, /* binding */ APP_VERSION,
|
|
2051
|
-
/* harmony export */ "BASE_PATH", 0, /* binding */ BASE_PATH,
|
|
2052
|
-
/* harmony export */ "BASE_PATH_IS_MIN", 0, /* binding */ BASE_PATH_IS_MIN,
|
|
2053
|
-
/* harmony export */ "BR", 0, /* binding */ BR,
|
|
2054
|
-
/* harmony export */ "CLIPBOARD_ID", 0, /* binding */ CLIPBOARD_ID,
|
|
2055
|
-
/* harmony export */ "COMMAND_KEYS", 0, /* binding */ COMMAND_KEYS,
|
|
2056
|
-
/* harmony export */ "EMULATE_DBLCLICK_TIMEOUT", 0, /* binding */ EMULATE_DBLCLICK_TIMEOUT,
|
|
2057
|
-
/* harmony export */ "ERROR_CODE_CONFLICT", 0, /* binding */ ERROR_CODE_CONFLICT,
|
|
2058
|
-
/* harmony export */ "ES", 0, /* binding */ ES,
|
|
2059
|
-
/* harmony export */ "FAT_MODE", 0, /* binding */ FAT_MODE,
|
|
2060
|
-
/* harmony export */ "HOMEPAGE", 0, /* binding */ HOMEPAGE,
|
|
2061
|
-
/* harmony export */ "INSEPARABLE_TAGS", 0, /* binding */ INSEPARABLE_TAGS,
|
|
2062
|
-
/* harmony export */ "INSERT_AS_HTML", 0, /* binding */ INSERT_AS_HTML,
|
|
2063
|
-
/* harmony export */ "INSERT_AS_TEXT", 0, /* binding */ INSERT_AS_TEXT,
|
|
2064
|
-
/* harmony export */ "INSERT_CLEAR_HTML", 0, /* binding */ INSERT_CLEAR_HTML,
|
|
2065
|
-
/* harmony export */ "INSERT_ONLY_TEXT", 0, /* binding */ INSERT_ONLY_TEXT,
|
|
2066
|
-
/* harmony export */ "INVISIBLE_SPACE", 0, /* binding */ INVISIBLE_SPACE,
|
|
2067
|
-
/* harmony export */ "INVISIBLE_SPACE_REG_EXP", 0, /* binding */ INVISIBLE_SPACE_REG_EXP,
|
|
2068
|
-
/* harmony export */ "INVISIBLE_SPACE_REG_EXP_END", 0, /* binding */ INVISIBLE_SPACE_REG_EXP_END,
|
|
2069
|
-
/* harmony export */ "INVISIBLE_SPACE_REG_EXP_START", 0, /* binding */ INVISIBLE_SPACE_REG_EXP_START,
|
|
2070
|
-
/* harmony export */ "IS_BLOCK", 0, /* binding */ IS_BLOCK,
|
|
2071
|
-
/* harmony export */ "IS_ES_MODERN", 0, /* binding */ IS_ES_MODERN,
|
|
2072
|
-
/* harmony export */ "IS_ES_NEXT", 0, /* binding */ IS_ES_NEXT,
|
|
2073
|
-
/* harmony export */ "IS_IE", 0, /* binding */ IS_IE,
|
|
2074
|
-
/* harmony export */ "IS_INLINE", 0, /* binding */ IS_INLINE,
|
|
2075
|
-
/* harmony export */ "IS_MAC", 0, /* binding */ IS_MAC,
|
|
2076
|
-
/* harmony export */ "IS_PROD", 0, /* binding */ IS_PROD,
|
|
2077
2092
|
/* harmony export */ "KEY_ALIASES", 0, /* binding */ KEY_ALIASES,
|
|
2078
2093
|
/* harmony export */ "KEY_ALT", 0, /* binding */ KEY_ALT,
|
|
2079
2094
|
/* harmony export */ "KEY_BACKSPACE", 0, /* binding */ KEY_BACKSPACE,
|
|
@@ -2100,6 +2115,7 @@ const PASSIVE_EVENTS = new Set([
|
|
|
2100
2115
|
/* harmony export */ "NO_EMPTY_TAGS", 0, /* binding */ NO_EMPTY_TAGS,
|
|
2101
2116
|
/* harmony export */ "PARAGRAPH", 0, /* binding */ PARAGRAPH,
|
|
2102
2117
|
/* harmony export */ "PASSIVE_EVENTS", 0, /* binding */ PASSIVE_EVENTS,
|
|
2118
|
+
/* harmony export */ "PASTE_KEEP_ATTRIBUTES", 0, /* binding */ PASTE_KEEP_ATTRIBUTES,
|
|
2103
2119
|
/* harmony export */ "SAFE_COUNT_CHANGE_CALL", 0, /* binding */ SAFE_COUNT_CHANGE_CALL,
|
|
2104
2120
|
/* harmony export */ "SET_TEST", 0, /* binding */ SET_TEST,
|
|
2105
2121
|
/* harmony export */ "SOURCE_CONSUMER", 0, /* binding */ SOURCE_CONSUMER,
|
|
@@ -2131,7 +2147,6 @@ const PASSIVE_EVENTS = new Set([
|
|
|
2131
2147
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23211);
|
|
2132
2148
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
|
|
2133
2149
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
2134
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
2135
2150
|
/*!
|
|
2136
2151
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
2137
2152
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -2626,7 +2641,6 @@ function getComponentClass(name) {
|
|
|
2626
2641
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16964);
|
|
2627
2642
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28686);
|
|
2628
2643
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
2629
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
2630
2644
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33201);
|
|
2631
2645
|
/*!
|
|
2632
2646
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -3099,7 +3113,6 @@ function wait(condition) {
|
|
|
3099
3113
|
/* harmony import */ var jodit_core_helpers_html_tag_scan__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81910);
|
|
3100
3114
|
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4040);
|
|
3101
3115
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(28712);
|
|
3102
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_10__);
|
|
3103
3116
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(7909);
|
|
3104
3117
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(80991);
|
|
3105
3118
|
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(36400);
|
|
@@ -4712,7 +4725,6 @@ function isObservableObject(obj) {
|
|
|
4712
4725
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
4713
4726
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
|
|
4714
4727
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
4715
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
4716
4728
|
/*!
|
|
4717
4729
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4718
4730
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -4797,8 +4809,13 @@ class EventHandlersStore {
|
|
|
4797
4809
|
|
|
4798
4810
|
"use strict";
|
|
4799
4811
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4812
|
+
/* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; },
|
|
4813
|
+
/* harmony export */ extendLang: function() { return /* binding */ extendLang; },
|
|
4800
4814
|
/* harmony export */ getContainer: function() { return /* binding */ getContainer; },
|
|
4801
4815
|
/* harmony export */ getPopupViewRoot: function() { return /* binding */ getPopupViewRoot; },
|
|
4816
|
+
/* harmony export */ instances: function() { return /* binding */ instances; },
|
|
4817
|
+
/* harmony export */ modules: function() { return /* binding */ modules; },
|
|
4818
|
+
/* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
|
|
4802
4819
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
4803
4820
|
/* harmony export */ });
|
|
4804
4821
|
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
|
|
@@ -4933,14 +4950,6 @@ const boxes = new WeakMap();
|
|
|
4933
4950
|
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
4934
4951
|
*/ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_10__.eventEmitter;
|
|
4935
4952
|
|
|
4936
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
4937
|
-
/* harmony export */ "eventEmitter", 0, /* binding */ eventEmitter,
|
|
4938
|
-
/* harmony export */ "extendLang", 0, /* binding */ extendLang,
|
|
4939
|
-
/* harmony export */ "instances", 0, /* binding */ instances,
|
|
4940
|
-
/* harmony export */ "modules", 0, /* binding */ modules,
|
|
4941
|
-
/* harmony export */ "pluginSystem", 0, /* binding */ pluginSystem
|
|
4942
|
-
/* harmony export */ ]);
|
|
4943
|
-
|
|
4944
4953
|
|
|
4945
4954
|
/***/ }),
|
|
4946
4955
|
|
|
@@ -6206,10 +6215,90 @@ function normalizeCSS(s) {
|
|
|
6206
6215
|
|
|
6207
6216
|
|
|
6208
6217
|
|
|
6218
|
+
/**
|
|
6219
|
+
* Google Docs marks bold, italic, underline and strikethrough with styles on
|
|
6220
|
+
* spans, where Word uses tags, so they become the tags before the styles go
|
|
6221
|
+
*/ function formattedSpansToTags(root) {
|
|
6222
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('span[style]')).forEach((span)=>{
|
|
6223
|
+
const { fontWeight, fontStyle } = span.style;
|
|
6224
|
+
const lines = span.style.textDecorationLine || span.style.textDecoration;
|
|
6225
|
+
const tags = [
|
|
6226
|
+
(fontWeight === 'bold' || fontWeight === 'bolder' || parseInt(fontWeight, 10) >= 600) && 'strong',
|
|
6227
|
+
/^(italic|oblique)/.test(fontStyle) && 'em',
|
|
6228
|
+
/underline/.test(lines) && 'u',
|
|
6229
|
+
/line-through/.test(lines) && 's'
|
|
6230
|
+
].filter((tag)=>Boolean(tag));
|
|
6231
|
+
if (!tags.length) {
|
|
6232
|
+
return;
|
|
6233
|
+
}
|
|
6234
|
+
const elements = tags.map((tag)=>span.ownerDocument.createElement(tag));
|
|
6235
|
+
// The outermost takes the span's attributes, which the cleaning
|
|
6236
|
+
// that follows filters as it would the span's
|
|
6237
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(span.attributes).forEach(({ name, value })=>elements[0].setAttribute(name, value));
|
|
6238
|
+
elements.reduce((parent, child)=>parent.appendChild(child));
|
|
6239
|
+
const innermost = elements[elements.length - 1];
|
|
6240
|
+
while(span.firstChild){
|
|
6241
|
+
innermost.appendChild(span.firstChild);
|
|
6242
|
+
}
|
|
6243
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(span, elements[0]);
|
|
6244
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(span);
|
|
6245
|
+
});
|
|
6246
|
+
}
|
|
6247
|
+
/**
|
|
6248
|
+
* Takes `node` out of `format`, which stays around the rest of its content
|
|
6249
|
+
*/ function liftOut(node, format) {
|
|
6250
|
+
const range = node.ownerDocument.createRange();
|
|
6251
|
+
const wrap = ()=>{
|
|
6252
|
+
if (!range.collapsed) {
|
|
6253
|
+
range.surroundContents(format.cloneNode());
|
|
6254
|
+
}
|
|
6255
|
+
};
|
|
6256
|
+
for(let child = node; child !== format; child = child.parentNode){
|
|
6257
|
+
range.selectNodeContents(child.parentNode);
|
|
6258
|
+
range.setEndBefore(child);
|
|
6259
|
+
wrap();
|
|
6260
|
+
range.selectNodeContents(child.parentNode);
|
|
6261
|
+
range.setStartAfter(child);
|
|
6262
|
+
wrap();
|
|
6263
|
+
}
|
|
6264
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(format);
|
|
6265
|
+
}
|
|
6266
|
+
/**
|
|
6267
|
+
* An element styled with a normal weight or style comes out of the bold or
|
|
6268
|
+
* italic tags around it, which would make it bold or italic once the styles go.
|
|
6269
|
+
* CSS can't take an ancestor's underline or strikethrough off, so they have no
|
|
6270
|
+
* such reset
|
|
6271
|
+
*/ function liftOutNormalFormatting(root) {
|
|
6272
|
+
const liftOutOf = (element, tags)=>{
|
|
6273
|
+
let format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
|
|
6274
|
+
while(format){
|
|
6275
|
+
liftOut(element, format);
|
|
6276
|
+
format = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(element.parentNode, tags, root);
|
|
6277
|
+
}
|
|
6278
|
+
};
|
|
6279
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(root.querySelectorAll('[style]')).forEach((element)=>{
|
|
6280
|
+
const { fontWeight, fontStyle } = element.style;
|
|
6281
|
+
if (fontWeight === 'normal' || fontWeight === 'lighter' || parseInt(fontWeight, 10) < 600) {
|
|
6282
|
+
liftOutOf(element, [
|
|
6283
|
+
'strong',
|
|
6284
|
+
'b'
|
|
6285
|
+
]);
|
|
6286
|
+
}
|
|
6287
|
+
if (fontStyle === 'normal') {
|
|
6288
|
+
liftOutOf(element, [
|
|
6289
|
+
'em',
|
|
6290
|
+
'i'
|
|
6291
|
+
]);
|
|
6292
|
+
}
|
|
6293
|
+
});
|
|
6294
|
+
}
|
|
6209
6295
|
/**
|
|
6210
6296
|
* The method automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant
|
|
6211
6297
|
* content that matches the look and feel of the site.
|
|
6212
|
-
|
|
6298
|
+
*
|
|
6299
|
+
* @param keepAttributes - The attributes to keep; every other attribute, and every style, is removed
|
|
6300
|
+
*/ function cleanFromWord(html, keepAttributes = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.PASTE_KEEP_ATTRIBUTES) {
|
|
6301
|
+
const keep = new Set(keepAttributes.map((name)=>name.toLowerCase()));
|
|
6213
6302
|
if (html.indexOf('<html ') !== -1) {
|
|
6214
6303
|
html = html.substring(html.indexOf('<html '), html.length);
|
|
6215
6304
|
html = html.substring(0, html.lastIndexOf('</html>') + '</html>'.length);
|
|
@@ -6220,6 +6309,8 @@ function normalizeCSS(s) {
|
|
|
6220
6309
|
div.innerHTML = html;
|
|
6221
6310
|
const marks = [];
|
|
6222
6311
|
const listItems = (0,jodit_core_helpers_html_word_lists__WEBPACK_IMPORTED_MODULE_4__.readWordListItems)(div);
|
|
6312
|
+
formattedSpansToTags(div);
|
|
6313
|
+
liftOutNormalFormatting(div);
|
|
6223
6314
|
if (div.firstChild) {
|
|
6224
6315
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.each(div, (node)=>{
|
|
6225
6316
|
if (!node) {
|
|
@@ -6249,12 +6340,7 @@ function normalizeCSS(s) {
|
|
|
6249
6340
|
break;
|
|
6250
6341
|
}
|
|
6251
6342
|
;(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__.toArray)(node.attributes).forEach((attribute)=>{
|
|
6252
|
-
if (
|
|
6253
|
-
'src',
|
|
6254
|
-
'href',
|
|
6255
|
-
'rel',
|
|
6256
|
-
'content'
|
|
6257
|
-
].indexOf(attribute.name.toLowerCase()) === -1) {
|
|
6343
|
+
if (!keep.has(attribute.name.toLowerCase())) {
|
|
6258
6344
|
// `attrRaw`: SVG keeps camelCase names
|
|
6259
6345
|
// (`viewBox`), `attr()` would kebab-case
|
|
6260
6346
|
// them and silently skip the removal
|
|
@@ -7409,6 +7495,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7409
7495
|
|
|
7410
7496
|
"use strict";
|
|
7411
7497
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7498
|
+
/* harmony export */ NUMBER_FIELDS_REG: function() { return /* binding */ NUMBER_FIELDS_REG; },
|
|
7412
7499
|
/* harmony export */ normalizeCssNumericValue: function() { return /* binding */ normalizeCssNumericValue; },
|
|
7413
7500
|
/* harmony export */ normalizeCssValue: function() { return /* binding */ normalizeCssValue; }
|
|
7414
7501
|
/* harmony export */ });
|
|
@@ -7455,10 +7542,6 @@ function normalizeCssValue(key, value) {
|
|
|
7455
7542
|
return value;
|
|
7456
7543
|
}
|
|
7457
7544
|
|
|
7458
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
7459
|
-
/* harmony export */ "NUMBER_FIELDS_REG", 0, /* binding */ NUMBER_FIELDS_REG
|
|
7460
|
-
/* harmony export */ ]);
|
|
7461
|
-
|
|
7462
7545
|
|
|
7463
7546
|
/***/ }),
|
|
7464
7547
|
|
|
@@ -8576,6 +8659,9 @@ function alignElement(command, box) {
|
|
|
8576
8659
|
|
|
8577
8660
|
"use strict";
|
|
8578
8661
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8662
|
+
/* harmony export */ alreadyLoadedList: function() { return /* binding */ alreadyLoadedList; },
|
|
8663
|
+
/* harmony export */ appendScriptAsync: function() { return /* binding */ appendScriptAsync; },
|
|
8664
|
+
/* harmony export */ appendStyleAsync: function() { return /* binding */ appendStyleAsync; },
|
|
8579
8665
|
/* harmony export */ loadNext: function() { return /* binding */ loadNext; },
|
|
8580
8666
|
/* harmony export */ loadNextStyle: function() { return /* binding */ loadNextStyle; }
|
|
8581
8667
|
/* harmony export */ });
|
|
@@ -8663,12 +8749,6 @@ function loadNextStyle(jodit, urls, i = 0) {
|
|
|
8663
8749
|
return appendStyleAsync(jodit, urls[i]).then(()=>loadNextStyle(jodit, urls, i + 1));
|
|
8664
8750
|
}
|
|
8665
8751
|
|
|
8666
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
8667
|
-
/* harmony export */ "alreadyLoadedList", 0, /* binding */ alreadyLoadedList,
|
|
8668
|
-
/* harmony export */ "appendScriptAsync", 0, /* binding */ appendScriptAsync,
|
|
8669
|
-
/* harmony export */ "appendStyleAsync", 0, /* binding */ appendStyleAsync
|
|
8670
|
-
/* harmony export */ ]);
|
|
8671
|
-
|
|
8672
8752
|
|
|
8673
8753
|
/***/ }),
|
|
8674
8754
|
|
|
@@ -9117,6 +9197,7 @@ function ConfigDeepFlatten(obj) {
|
|
|
9117
9197
|
|
|
9118
9198
|
"use strict";
|
|
9119
9199
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9200
|
+
/* harmony export */ clearCenterAlign: function() { return /* binding */ clearCenterAlign; },
|
|
9120
9201
|
/* harmony export */ css: function() { return /* binding */ css; },
|
|
9121
9202
|
/* harmony export */ cssInline: function() { return /* binding */ cssInline; }
|
|
9122
9203
|
/* harmony export */ });
|
|
@@ -9208,10 +9289,6 @@ const clearCenterAlign = (image)=>{
|
|
|
9208
9289
|
}
|
|
9209
9290
|
};
|
|
9210
9291
|
|
|
9211
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
9212
|
-
/* harmony export */ "clearCenterAlign", 0, /* binding */ clearCenterAlign
|
|
9213
|
-
/* harmony export */ ]);
|
|
9214
|
-
|
|
9215
9292
|
|
|
9216
9293
|
/***/ }),
|
|
9217
9294
|
|
|
@@ -9899,6 +9976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9899
9976
|
|
|
9900
9977
|
"use strict";
|
|
9901
9978
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9979
|
+
/* harmony export */ UNSAFE_PROTO_KEYS: function() { return /* binding */ UNSAFE_PROTO_KEYS; },
|
|
9902
9980
|
/* harmony export */ isUnsafeProtoKey: function() { return /* binding */ isUnsafeProtoKey; }
|
|
9903
9981
|
/* harmony export */ });
|
|
9904
9982
|
/*!
|
|
@@ -9922,10 +10000,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9922
10000
|
return UNSAFE_PROTO_KEYS.indexOf(key) !== -1;
|
|
9923
10001
|
}
|
|
9924
10002
|
|
|
9925
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
9926
|
-
/* harmony export */ "UNSAFE_PROTO_KEYS", 0, /* binding */ UNSAFE_PROTO_KEYS
|
|
9927
|
-
/* harmony export */ ]);
|
|
9928
|
-
|
|
9929
10003
|
|
|
9930
10004
|
/***/ }),
|
|
9931
10005
|
|
|
@@ -9934,6 +10008,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9934
10008
|
|
|
9935
10009
|
"use strict";
|
|
9936
10010
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10011
|
+
/* harmony export */ cns: function() { return /* binding */ cns; },
|
|
9937
10012
|
/* harmony export */ markDeprecated: function() { return /* binding */ markDeprecated; }
|
|
9938
10013
|
/* harmony export */ });
|
|
9939
10014
|
/*!
|
|
@@ -9957,10 +10032,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9957
10032
|
};
|
|
9958
10033
|
}
|
|
9959
10034
|
|
|
9960
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
9961
|
-
/* harmony export */ "cns", 0, /* binding */ cns
|
|
9962
|
-
/* harmony export */ ]);
|
|
9963
|
-
|
|
9964
10035
|
|
|
9965
10036
|
/***/ }),
|
|
9966
10037
|
|
|
@@ -10434,6 +10505,9 @@ const map = {};
|
|
|
10434
10505
|
"use strict";
|
|
10435
10506
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10436
10507
|
/* harmony export */ $$: function() { return /* binding */ $$; },
|
|
10508
|
+
/* harmony export */ cssPath: function() { return /* binding */ cssPath; },
|
|
10509
|
+
/* harmony export */ getXPathByElement: function() { return /* binding */ getXPathByElement; },
|
|
10510
|
+
/* harmony export */ refs: function() { return /* binding */ refs; },
|
|
10437
10511
|
/* harmony export */ resolveElement: function() { return /* binding */ resolveElement; }
|
|
10438
10512
|
/* harmony export */ });
|
|
10439
10513
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
@@ -10520,16 +10594,17 @@ const $$temp = ()=>{
|
|
|
10520
10594
|
const path = [];
|
|
10521
10595
|
let start = el;
|
|
10522
10596
|
while(start && start.nodeType === Node.ELEMENT_NODE){
|
|
10523
|
-
|
|
10597
|
+
const tag = start.nodeName.toLowerCase();
|
|
10598
|
+
let selector = CSS.escape(tag);
|
|
10524
10599
|
if (start.id) {
|
|
10525
|
-
selector += '#' + start.id;
|
|
10600
|
+
selector += '#' + CSS.escape(start.id);
|
|
10526
10601
|
path.unshift(selector);
|
|
10527
10602
|
break;
|
|
10528
10603
|
} else {
|
|
10529
10604
|
let sib = start, nth = 1;
|
|
10530
10605
|
do {
|
|
10531
10606
|
sib = sib.previousElementSibling;
|
|
10532
|
-
if (sib && sib.nodeName.toLowerCase() ===
|
|
10607
|
+
if (sib && sib.nodeName.toLowerCase() === tag) {
|
|
10533
10608
|
nth++;
|
|
10534
10609
|
}
|
|
10535
10610
|
}while (sib)
|
|
@@ -10558,12 +10633,6 @@ const $$temp = ()=>{
|
|
|
10558
10633
|
return resolved;
|
|
10559
10634
|
}
|
|
10560
10635
|
|
|
10561
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
10562
|
-
/* harmony export */ "cssPath", 0, /* binding */ cssPath,
|
|
10563
|
-
/* harmony export */ "getXPathByElement", 0, /* binding */ getXPathByElement,
|
|
10564
|
-
/* harmony export */ "refs", 0, /* binding */ refs
|
|
10565
|
-
/* harmony export */ ]);
|
|
10566
|
-
|
|
10567
10636
|
|
|
10568
10637
|
/***/ }),
|
|
10569
10638
|
|
|
@@ -10674,7 +10743,10 @@ class LimitedStack {
|
|
|
10674
10743
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
10675
10744
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
10676
10745
|
/* harmony export */ callThis: function() { return /* binding */ callThis; },
|
|
10746
|
+
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
10677
10747
|
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
10748
|
+
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
10749
|
+
/* harmony export */ loadImage: function() { return /* binding */ loadImage; },
|
|
10678
10750
|
/* harmony export */ markOwner: function() { return /* binding */ markOwner; }
|
|
10679
10751
|
/* harmony export */ });
|
|
10680
10752
|
/* harmony import */ var jodit_core_helpers_checker_is_promise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52100);
|
|
@@ -10790,9 +10862,6 @@ function getPropertyDescriptor(obj, prop) {
|
|
|
10790
10862
|
}
|
|
10791
10863
|
|
|
10792
10864
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
10793
|
-
/* harmony export */ "getDataTransfer", 0, /* binding */ getDataTransfer,
|
|
10794
|
-
/* harmony export */ "keys", 0, /* binding */ keys,
|
|
10795
|
-
/* harmony export */ "loadImage", 0, /* binding */ loadImage,
|
|
10796
10865
|
/* harmony export */ "memorizeExec", 0, /* binding */ memorizeExec
|
|
10797
10866
|
/* harmony export */ ]);
|
|
10798
10867
|
|
|
@@ -12003,7 +12072,6 @@ function findCorrectCurrentNode(node, range, rightMode, isCollapsed, checkChild,
|
|
|
12003
12072
|
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28686);
|
|
12004
12073
|
/* harmony import */ var jodit_core_helpers_utils_align__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(16849);
|
|
12005
12074
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28712);
|
|
12006
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8__);
|
|
12007
12075
|
/* harmony import */ var jodit_core_selection_helpers_move_the_node_along_the_edge_outward__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7470);
|
|
12008
12076
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(84578);
|
|
12009
12077
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(42259);
|
|
@@ -13512,7 +13580,6 @@ class Selection {
|
|
|
13512
13580
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
|
|
13513
13581
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
|
|
13514
13582
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28712);
|
|
13515
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_3__);
|
|
13516
13583
|
/*!
|
|
13517
13584
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
13518
13585
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -13674,7 +13741,6 @@ class Selection {
|
|
|
13674
13741
|
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18303);
|
|
13675
13742
|
/* harmony import */ var jodit_core_helpers_normalize_normalize_css_value__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19147);
|
|
13676
13743
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
13677
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
13678
13744
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80991);
|
|
13679
13745
|
/*!
|
|
13680
13746
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
@@ -13854,7 +13920,6 @@ if (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalDocument) {
|
|
|
13854
13920
|
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18073);
|
|
13855
13921
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93640);
|
|
13856
13922
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
13857
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
13858
13923
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7909);
|
|
13859
13924
|
/* harmony import */ var _has_same_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9703);
|
|
13860
13925
|
/*!
|
|
@@ -13987,7 +14052,6 @@ function elementsEqualAttributes(elm1, elm2) {
|
|
|
13987
14052
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
13988
14053
|
/* harmony import */ var jodit_core_helpers_size_object_size__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(18073);
|
|
13989
14054
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28712);
|
|
13990
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__);
|
|
13991
14055
|
/* harmony import */ var jodit_core_selection_style_api_extract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17481);
|
|
13992
14056
|
/* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95971);
|
|
13993
14057
|
/* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82794);
|
|
@@ -14491,6 +14555,7 @@ function toggleAttribute(jodit, value, elm, key, dry, mode) {
|
|
|
14491
14555
|
|
|
14492
14556
|
"use strict";
|
|
14493
14557
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14558
|
+
/* harmony export */ WRAP_NODES: function() { return /* binding */ WRAP_NODES; },
|
|
14494
14559
|
/* harmony export */ wrap: function() { return /* binding */ wrap; }
|
|
14495
14560
|
/* harmony export */ });
|
|
14496
14561
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27795);
|
|
@@ -14562,10 +14627,6 @@ const WRAP_NODES = new Set([
|
|
|
14562
14627
|
return Array.from(node.childNodes).some((child)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isBlock(child));
|
|
14563
14628
|
}
|
|
14564
14629
|
|
|
14565
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
14566
|
-
/* harmony export */ "WRAP_NODES", 0, /* binding */ WRAP_NODES
|
|
14567
|
-
/* harmony export */ ]);
|
|
14568
|
-
|
|
14569
14630
|
|
|
14570
14631
|
/***/ }),
|
|
14571
14632
|
|
|
@@ -14782,7 +14843,6 @@ class CommitStyle {
|
|
|
14782
14843
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81937);
|
|
14783
14844
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
14784
14845
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
14785
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
14786
14846
|
/* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51640);
|
|
14787
14847
|
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98394);
|
|
14788
14848
|
/*!
|
|
@@ -15769,7 +15829,6 @@ class Mods {
|
|
|
15769
15829
|
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91565);
|
|
15770
15830
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
|
|
15771
15831
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
|
|
15772
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
|
|
15773
15832
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
|
|
15774
15833
|
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
|
|
15775
15834
|
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29434);
|
|
@@ -16080,7 +16139,6 @@ function Button(jodit, stateOrText, text, variant) {
|
|
|
16080
16139
|
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(91672);
|
|
16081
16140
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
16082
16141
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
16083
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
16084
16142
|
/* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53681);
|
|
16085
16143
|
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63468);
|
|
16086
16144
|
/*!
|
|
@@ -18215,7 +18273,6 @@ class Icon {
|
|
|
18215
18273
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(28077);
|
|
18216
18274
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(65946);
|
|
18217
18275
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
|
|
18218
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
|
|
18219
18276
|
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(80991);
|
|
18220
18277
|
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
|
|
18221
18278
|
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(63468);
|
|
@@ -20853,7 +20910,6 @@ ContextMenu = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__._)([
|
|
|
20853
20910
|
/* harmony import */ var jodit_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(22852);
|
|
20854
20911
|
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(93640);
|
|
20855
20912
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(28712);
|
|
20856
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_13__);
|
|
20857
20913
|
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(4099);
|
|
20858
20914
|
/* harmony import */ var jodit_core_view_view__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(35099);
|
|
20859
20915
|
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2222);
|
|
@@ -22286,6 +22342,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_7__.Config.prototype.controls.filebrowser
|
|
|
22286
22342
|
|
|
22287
22343
|
"use strict";
|
|
22288
22344
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22345
|
+
/* harmony export */ DEFAULT_SOURCE_NAME: function() { return /* binding */ DEFAULT_SOURCE_NAME; },
|
|
22289
22346
|
/* harmony export */ "default": function() { return /* binding */ DataProvider; }
|
|
22290
22347
|
/* harmony export */ });
|
|
22291
22348
|
/* unused harmony export assertSourcesAnswer */
|
|
@@ -22742,7 +22799,7 @@ class DataProvider {
|
|
|
22742
22799
|
this.progressHandler = (ignore)=>{};
|
|
22743
22800
|
}
|
|
22744
22801
|
}
|
|
22745
|
-
|
|
22802
|
+
;
|
|
22746
22803
|
;(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__._)([
|
|
22747
22804
|
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
22748
22805
|
], DataProvider.prototype, "onProgress", null);
|
|
@@ -22798,10 +22855,6 @@ class DataProvider {
|
|
|
22798
22855
|
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_6__.autobind
|
|
22799
22856
|
], DataProvider.prototype, "destruct", null);
|
|
22800
22857
|
|
|
22801
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
22802
|
-
/* harmony export */ "DEFAULT_SOURCE_NAME", 0, /* binding */ DEFAULT_SOURCE_NAME
|
|
22803
|
-
/* harmony export */ ]);
|
|
22804
|
-
|
|
22805
22858
|
|
|
22806
22859
|
/***/ }),
|
|
22807
22860
|
|
|
@@ -26240,7 +26293,6 @@ const instance = (j)=>j.getInstance('Table', j.o);
|
|
|
26240
26293
|
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(86878);
|
|
26241
26294
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(57821);
|
|
26242
26295
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(28712);
|
|
26243
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_19__);
|
|
26244
26296
|
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(7909);
|
|
26245
26297
|
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(71125);
|
|
26246
26298
|
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(59400);
|
|
@@ -27998,6 +28050,7 @@ function readImagesWithReader(fileList, imagesExtensions, promises, uploader, ha
|
|
|
27998
28050
|
|
|
27999
28051
|
"use strict";
|
|
28000
28052
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28053
|
+
/* harmony export */ ajaxInstances: function() { return /* binding */ ajaxInstances; },
|
|
28001
28054
|
/* harmony export */ send: function() { return /* binding */ send; }
|
|
28002
28055
|
/* harmony export */ });
|
|
28003
28056
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65946);
|
|
@@ -28079,10 +28132,6 @@ function send(uploader, data) {
|
|
|
28079
28132
|
return sendData(requestData, showProgress);
|
|
28080
28133
|
}
|
|
28081
28134
|
|
|
28082
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
28083
|
-
/* harmony export */ "ajaxInstances", 0, /* binding */ ajaxInstances
|
|
28084
|
-
/* harmony export */ ]);
|
|
28085
|
-
|
|
28086
28135
|
|
|
28087
28136
|
/***/ }),
|
|
28088
28137
|
|
|
@@ -37517,12 +37566,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
|
|
|
37517
37566
|
|
|
37518
37567
|
"use strict";
|
|
37519
37568
|
/* unused harmony export hr */
|
|
37520
|
-
/* harmony import */ var
|
|
37521
|
-
/* harmony import */ var
|
|
37522
|
-
/* harmony import */ var
|
|
37523
|
-
/* harmony import */ var
|
|
37524
|
-
/* harmony import */ var
|
|
37525
|
-
/* harmony import */ var
|
|
37569
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
37570
|
+
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27795);
|
|
37571
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28077);
|
|
37572
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65946);
|
|
37573
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
37574
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
37575
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89097);
|
|
37576
|
+
/* harmony import */ var _hr_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_hr_svg__WEBPACK_IMPORTED_MODULE_6__);
|
|
37526
37577
|
/*!
|
|
37527
37578
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37528
37579
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37536,8 +37587,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hotkeys', hotke
|
|
|
37536
37587
|
|
|
37537
37588
|
|
|
37538
37589
|
|
|
37539
|
-
|
|
37540
|
-
|
|
37590
|
+
|
|
37591
|
+
|
|
37592
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('hr', (_hr_svg__WEBPACK_IMPORTED_MODULE_6___default()));
|
|
37593
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.hr = {
|
|
37541
37594
|
command: 'insertHorizontalRule',
|
|
37542
37595
|
tooltip: 'Insert Horizontal Line'
|
|
37543
37596
|
};
|
|
@@ -37550,36 +37603,293 @@ function hr(editor) {
|
|
|
37550
37603
|
var _editor_o_dtd;
|
|
37551
37604
|
const elm = editor.createInside.element('hr');
|
|
37552
37605
|
editor.s.insertNode(elm, false, false);
|
|
37553
|
-
const block =
|
|
37606
|
+
const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(elm.parentElement, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
37554
37607
|
// A block that holds other blocks, such as a list item or a table
|
|
37555
37608
|
// cell, keeps the line
|
|
37556
|
-
if (block &&
|
|
37557
|
-
|
|
37558
|
-
|
|
37609
|
+
if (block && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block) && block !== editor.editor && !((_editor_o_dtd = editor.o.dtd) === null || _editor_o_dtd === void 0 ? void 0 : _editor_o_dtd.blockLimits[block.nodeName.toLowerCase()])) {
|
|
37610
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(block, elm);
|
|
37611
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
|
|
37559
37612
|
}
|
|
37560
|
-
const next =
|
|
37561
|
-
if (
|
|
37613
|
+
const next = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(elm, false);
|
|
37614
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(next)) {
|
|
37562
37615
|
editor.s.setCursorIn(next, true);
|
|
37563
37616
|
return false;
|
|
37564
37617
|
}
|
|
37565
37618
|
// In a list item or a table cell the text goes on after the line, as
|
|
37566
37619
|
// it does with the browsers' own command
|
|
37567
|
-
if (next || elm.parentNode !== editor.editor && !
|
|
37620
|
+
if (next || elm.parentNode !== editor.editor && !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.findNotEmptySibling(elm, true))) {
|
|
37568
37621
|
editor.s.setCursorAfter(elm);
|
|
37569
37622
|
return false;
|
|
37570
37623
|
}
|
|
37571
37624
|
const p = editor.createInside.element(editor.o.enter);
|
|
37572
37625
|
// As Enter's new line has, so it keeps its height without clean-html's
|
|
37573
37626
|
// fillEmptyParagraph (#1807)
|
|
37574
|
-
if (!
|
|
37575
|
-
|
|
37627
|
+
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(p, 'br')) {
|
|
37628
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.append(p, editor.createInside.element('br'));
|
|
37576
37629
|
}
|
|
37577
|
-
|
|
37630
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(elm, p);
|
|
37578
37631
|
editor.s.setCursorIn(p);
|
|
37579
37632
|
return false;
|
|
37580
37633
|
});
|
|
37634
|
+
// A horizontal line is selected whole, as an image is: by a click on it,
|
|
37635
|
+
// or by an arrow key that comes to it (#1802)
|
|
37636
|
+
const nearest = (node, forward)=>{
|
|
37637
|
+
while(node && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyTextNode(node)){
|
|
37638
|
+
node = forward ? node.nextSibling : node.previousSibling;
|
|
37639
|
+
}
|
|
37640
|
+
return node;
|
|
37641
|
+
};
|
|
37642
|
+
const beside = (node, forward)=>nearest(forward ? node.nextSibling : node.previousSibling, forward);
|
|
37643
|
+
// A line between blocks, where the caret beside it isn't in a line of
|
|
37644
|
+
// text, as it is in a list item or a table cell (#1606)
|
|
37645
|
+
const isLoose = (node)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'hr') && node.parentNode === editor.editor && editor.o.enter.toLowerCase() !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.BR;
|
|
37646
|
+
// The line a range holds, and nothing else
|
|
37647
|
+
const lineIn = (range)=>{
|
|
37648
|
+
const { startContainer: box, startOffset } = range;
|
|
37649
|
+
const node = box.childNodes[startOffset];
|
|
37650
|
+
return box === range.endContainer && range.endOffset === startOffset + 1 && jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(node, 'hr') && editor.editor.contains(node) ? node : null;
|
|
37651
|
+
};
|
|
37652
|
+
// The browsers don't draw a selection round a line, so a rule in the
|
|
37653
|
+
// editor's document frames it, as the table module marks cells
|
|
37654
|
+
let framed = null;
|
|
37655
|
+
const frame = (line)=>{
|
|
37656
|
+
if (line === framed) {
|
|
37657
|
+
return;
|
|
37658
|
+
}
|
|
37659
|
+
framed = line;
|
|
37660
|
+
const path = line && (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.cssPath)(line);
|
|
37661
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.getContainer)(editor, 'hr', 'style', true).innerHTML = path ? `${path}{outline:3px solid var(--jd-resizer-border-color,#98c1f1);outline-offset:3px}` : '';
|
|
37662
|
+
};
|
|
37663
|
+
const editable = ()=>!editor.o.readonly && !editor.isLocked;
|
|
37664
|
+
const plain = (e)=>!e.shiftKey && !e.ctrlKey && !e.metaKey && !e.altKey;
|
|
37665
|
+
const newLine = (node, after)=>{
|
|
37666
|
+
const p = editor.createInside.element(editor.o.enter);
|
|
37667
|
+
const br = editor.createInside.element('br');
|
|
37668
|
+
p.appendChild(br);
|
|
37669
|
+
after ? jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.after(node, p) : jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.before(node, p);
|
|
37670
|
+
editor.s.setCursorBefore(br);
|
|
37671
|
+
};
|
|
37672
|
+
// On from a line the way an arrow key goes: to the next line in a row,
|
|
37673
|
+
// which is selected in turn, or into the text beyond, or into a new
|
|
37674
|
+
// paragraph at the start or end of the content
|
|
37675
|
+
const pass = (line, forward)=>{
|
|
37676
|
+
const next = beside(line, forward);
|
|
37677
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
|
|
37678
|
+
editor.s.select(next);
|
|
37679
|
+
} else if (next) {
|
|
37680
|
+
editor.s.setCursorIn(next, forward);
|
|
37681
|
+
} else {
|
|
37682
|
+
newLine(line, forward);
|
|
37683
|
+
}
|
|
37684
|
+
};
|
|
37685
|
+
// Only the line goes, without joining the lines either side. Backspace
|
|
37686
|
+
// leaves the caret at the end of the line before, Delete at the start of
|
|
37687
|
+
// the line after, or the other side at the start or end of the content
|
|
37688
|
+
const remove = (line, forward)=>{
|
|
37689
|
+
const before = beside(line, false);
|
|
37690
|
+
const after = beside(line, true);
|
|
37691
|
+
const next = forward ? after !== null && after !== void 0 ? after : before : before !== null && before !== void 0 ? before : after;
|
|
37692
|
+
if (!next) {
|
|
37693
|
+
newLine(line, true);
|
|
37694
|
+
}
|
|
37695
|
+
editor.s.removeNode(line);
|
|
37696
|
+
if (jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(next, 'hr')) {
|
|
37697
|
+
editor.s.select(next);
|
|
37698
|
+
} else if (next) {
|
|
37699
|
+
editor.s.setCursorIn(next, next === after);
|
|
37700
|
+
}
|
|
37701
|
+
};
|
|
37702
|
+
// The nodes either side of a caret left beside a line in the editor
|
|
37703
|
+
// itself, outside any line of text, as a click beside the line, Jodit's
|
|
37704
|
+
// own delete or a paste leaves it
|
|
37705
|
+
const around = (range)=>{
|
|
37706
|
+
var _box_childNodes_, _box_childNodes_startOffset;
|
|
37707
|
+
const { startContainer: box, startOffset } = range;
|
|
37708
|
+
if (!range.collapsed || box !== editor.editor) {
|
|
37709
|
+
return null;
|
|
37710
|
+
}
|
|
37711
|
+
const before = nearest((_box_childNodes_ = box.childNodes[startOffset - 1]) !== null && _box_childNodes_ !== void 0 ? _box_childNodes_ : null, false);
|
|
37712
|
+
const after = nearest((_box_childNodes_startOffset = box.childNodes[startOffset]) !== null && _box_childNodes_startOffset !== void 0 ? _box_childNodes_startOffset : null, true);
|
|
37713
|
+
return isLoose(before) || isLoose(after) ? [
|
|
37714
|
+
before,
|
|
37715
|
+
after
|
|
37716
|
+
] : null;
|
|
37717
|
+
};
|
|
37718
|
+
// After a click beside a line, off it, the caret goes to the nearest line
|
|
37719
|
+
// of text: the one above for a click above the line, the one below for a
|
|
37720
|
+
// click below
|
|
37721
|
+
const leave = ()=>{
|
|
37722
|
+
const sides = around(editor.s.range);
|
|
37723
|
+
if (!sides || !editable()) {
|
|
37724
|
+
return;
|
|
37725
|
+
}
|
|
37726
|
+
const [before, after] = sides;
|
|
37727
|
+
const forward = !isLoose(after);
|
|
37728
|
+
let edge = forward ? before : after;
|
|
37729
|
+
let next = forward ? after : before;
|
|
37730
|
+
while(isLoose(next)){
|
|
37731
|
+
edge = next;
|
|
37732
|
+
next = beside(next, forward);
|
|
37733
|
+
}
|
|
37734
|
+
if (next) {
|
|
37735
|
+
editor.s.setCursorIn(next, forward);
|
|
37736
|
+
} else if (edge) {
|
|
37737
|
+
newLine(edge, forward);
|
|
37738
|
+
editor.synchronizeValues();
|
|
37739
|
+
}
|
|
37740
|
+
};
|
|
37741
|
+
// The browsers stop the caret beside a line, so an arrow key that takes
|
|
37742
|
+
// the caret out of a block towards a line selects the line instead
|
|
37743
|
+
const arriveAt = (from, forward)=>{
|
|
37744
|
+
const top = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.up(from.startContainer, (node)=>(node === null || node === void 0 ? void 0 : node.parentNode) === editor.editor, editor.editor);
|
|
37745
|
+
const next = top && beside(top, forward);
|
|
37746
|
+
if (!top || !isLoose(next)) {
|
|
37747
|
+
return;
|
|
37748
|
+
}
|
|
37749
|
+
// Once the browser has moved the caret
|
|
37750
|
+
editor.async.setTimeout(()=>{
|
|
37751
|
+
const { range } = editor.s;
|
|
37752
|
+
if (range.collapsed && !top.contains(range.startContainer) && editor.editor.contains(next)) {
|
|
37753
|
+
editor.s.select(next);
|
|
37754
|
+
}
|
|
37755
|
+
}, 1);
|
|
37756
|
+
};
|
|
37757
|
+
// Delete or Backspace in an empty block next to a line removes the block
|
|
37758
|
+
// and selects the line, as it was before Enter on it. Jodit's own delete
|
|
37759
|
+
// would leave the caret beside the line
|
|
37760
|
+
const deleteEmpty = (range, forward)=>{
|
|
37761
|
+
const block = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.closest(range.startContainer, jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock, editor.editor);
|
|
37762
|
+
const next = block && beside(block, forward);
|
|
37763
|
+
if (!block || block.parentNode !== editor.editor || !isLoose(next) || !jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmpty(block)) {
|
|
37764
|
+
return false;
|
|
37765
|
+
}
|
|
37766
|
+
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(block);
|
|
37767
|
+
editor.s.select(next);
|
|
37768
|
+
return true;
|
|
37769
|
+
};
|
|
37770
|
+
// A key with the caret in a line of text, or beside a line: an arrow
|
|
37771
|
+
// key, Delete or Backspace that goes to a line selects it
|
|
37772
|
+
const atCaret = (e, range)=>{
|
|
37773
|
+
const deleting = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE;
|
|
37774
|
+
const forward = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE;
|
|
37775
|
+
const arrow = forward ? e.key !== jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE : e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT;
|
|
37776
|
+
if (!range.collapsed || !plain(e) || !(arrow || deleting)) {
|
|
37777
|
+
return false;
|
|
37778
|
+
}
|
|
37779
|
+
const sides = around(range);
|
|
37780
|
+
if (!sides) {
|
|
37781
|
+
if (arrow) {
|
|
37782
|
+
arriveAt(range, forward);
|
|
37783
|
+
return false;
|
|
37784
|
+
}
|
|
37785
|
+
return deleteEmpty(range, forward);
|
|
37786
|
+
}
|
|
37787
|
+
const [before, after] = sides;
|
|
37788
|
+
const next = forward ? after : before;
|
|
37789
|
+
if (isLoose(next)) {
|
|
37790
|
+
editor.s.select(next);
|
|
37791
|
+
} else if (deleting) {
|
|
37792
|
+
return false;
|
|
37793
|
+
} else if (next) {
|
|
37794
|
+
editor.s.setCursorIn(next, forward);
|
|
37795
|
+
} else {
|
|
37796
|
+
newLine(forward ? before : after, forward);
|
|
37797
|
+
}
|
|
37798
|
+
return true;
|
|
37799
|
+
};
|
|
37800
|
+
// A key with a line selected
|
|
37801
|
+
const onLine = (e, line)=>{
|
|
37802
|
+
const back = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_UP || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_LEFT;
|
|
37803
|
+
if (plain(e) && (back || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DOWN || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_RIGHT)) {
|
|
37804
|
+
pass(line, !back);
|
|
37805
|
+
} else if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_BACKSPACE || e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE) {
|
|
37806
|
+
remove(line, e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_DELETE);
|
|
37807
|
+
} else {
|
|
37808
|
+
var _e_key;
|
|
37809
|
+
// Typing starts a new paragraph after the line, and the browser
|
|
37810
|
+
// types the letter into it
|
|
37811
|
+
if (((_e_key = e.key) === null || _e_key === void 0 ? void 0 : _e_key.length) === 1 && !e.ctrlKey && !e.metaKey) {
|
|
37812
|
+
newLine(line, true);
|
|
37813
|
+
}
|
|
37814
|
+
return false;
|
|
37815
|
+
}
|
|
37816
|
+
return true;
|
|
37817
|
+
};
|
|
37818
|
+
// Enter with a line selected adds a paragraph after the line, and
|
|
37819
|
+
// Shift+Enter one before it, between the Enter plugin's own events. The
|
|
37820
|
+
// plugin itself would delete the line
|
|
37821
|
+
const enter = (e, line)=>{
|
|
37822
|
+
const result = editor.e.fire('beforeEnter', e);
|
|
37823
|
+
if (result !== undefined) {
|
|
37824
|
+
return result;
|
|
37825
|
+
}
|
|
37826
|
+
editor.history.snapshot.transaction(()=>{
|
|
37827
|
+
newLine(line, !e.shiftKey);
|
|
37828
|
+
editor.e.fire('afterEnter', e);
|
|
37829
|
+
});
|
|
37830
|
+
editor.synchronizeValues();
|
|
37831
|
+
return false;
|
|
37832
|
+
};
|
|
37833
|
+
// How far above or below a line a click still selects it
|
|
37834
|
+
const slack = 6;
|
|
37835
|
+
// The press that selected a line, for its click to open the popup
|
|
37836
|
+
let pressed = null;
|
|
37837
|
+
editor.e.on('afterInit', ()=>{
|
|
37838
|
+
editor.e.on(editor.ed, 'selectionchange', ()=>{
|
|
37839
|
+
const { sel } = editor.s;
|
|
37840
|
+
frame((sel === null || sel === void 0 ? void 0 : sel.rangeCount) ? lineIn(sel.getRangeAt(0)) : null);
|
|
37841
|
+
});
|
|
37842
|
+
}).on('keydown', (e)=>{
|
|
37843
|
+
if (!editable() || e.isComposing) {
|
|
37844
|
+
return;
|
|
37845
|
+
}
|
|
37846
|
+
const { range } = editor.s;
|
|
37847
|
+
const line = lineIn(range);
|
|
37848
|
+
if (line && e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.KEY_ENTER) {
|
|
37849
|
+
editor.e.stopPropagation('keydown');
|
|
37850
|
+
return enter(e, line);
|
|
37851
|
+
}
|
|
37852
|
+
if (line ? !onLine(e, line) : !atCaret(e, range)) {
|
|
37853
|
+
return;
|
|
37854
|
+
}
|
|
37855
|
+
editor.e.stopPropagation('keydown');
|
|
37856
|
+
editor.synchronizeValues();
|
|
37857
|
+
return false;
|
|
37858
|
+
}, {
|
|
37859
|
+
top: true
|
|
37860
|
+
}).on('mousedown', (e)=>{
|
|
37861
|
+
pressed = null;
|
|
37862
|
+
if (!editable() || e.button !== 0 || e.shiftKey) {
|
|
37863
|
+
return;
|
|
37864
|
+
}
|
|
37865
|
+
const line = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.toArray)(editor.editor.getElementsByTagName('hr')).find((line)=>{
|
|
37866
|
+
if (e.target !== line && e.target !== line.parentNode) {
|
|
37867
|
+
return false;
|
|
37868
|
+
}
|
|
37869
|
+
const box = line.getBoundingClientRect();
|
|
37870
|
+
return e.clientX >= box.left && e.clientX <= box.right && e.clientY >= box.top - slack && e.clientY <= box.bottom + slack;
|
|
37871
|
+
});
|
|
37872
|
+
if (line) {
|
|
37873
|
+
// The browser's own press would put the caret beside the line
|
|
37874
|
+
e.preventDefault();
|
|
37875
|
+
pressed = line;
|
|
37876
|
+
editor.s.select(line);
|
|
37877
|
+
}
|
|
37878
|
+
}).on('click', ()=>{
|
|
37879
|
+
const line = pressed;
|
|
37880
|
+
pressed = null;
|
|
37881
|
+
// After the click's own handlers, which close the popups
|
|
37882
|
+
line && editor.async.setTimeout(()=>editor.e.fire('showPopup', line, ()=>(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_3__.position)(line, editor), 'hr'), 1);
|
|
37883
|
+
}).on('mouseup', ()=>{
|
|
37884
|
+
editor.async.setTimeout(leave, 1);
|
|
37885
|
+
}).on('deleteHorizontalRule', (line)=>{
|
|
37886
|
+
if (editable()) {
|
|
37887
|
+
remove(line, true);
|
|
37888
|
+
editor.synchronizeValues();
|
|
37889
|
+
}
|
|
37890
|
+
});
|
|
37581
37891
|
}
|
|
37582
|
-
|
|
37892
|
+
jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('hr', hr);
|
|
37583
37893
|
|
|
37584
37894
|
|
|
37585
37895
|
/***/ }),
|
|
@@ -40990,27 +41300,28 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
40990
41300
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5266);
|
|
40991
41301
|
/* harmony import */ var _items_a__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70235);
|
|
40992
41302
|
/* harmony import */ var _items_cells__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17849);
|
|
40993
|
-
/* harmony import */ var
|
|
40994
|
-
/* harmony import */ var
|
|
40995
|
-
/* harmony import */ var
|
|
40996
|
-
/* harmony import */ var
|
|
40997
|
-
/* harmony import */ var
|
|
40998
|
-
/* harmony import */ var
|
|
40999
|
-
/* harmony import */ var
|
|
41000
|
-
/* harmony import */ var
|
|
41001
|
-
/* harmony import */ var
|
|
41002
|
-
/* harmony import */ var
|
|
41003
|
-
/* harmony import */ var
|
|
41004
|
-
/* harmony import */ var
|
|
41005
|
-
/* harmony import */ var
|
|
41006
|
-
/* harmony import */ var
|
|
41007
|
-
/* harmony import */ var
|
|
41008
|
-
/* harmony import */ var
|
|
41009
|
-
/* harmony import */ var
|
|
41010
|
-
/* harmony import */ var
|
|
41011
|
-
/* harmony import */ var
|
|
41012
|
-
/* harmony import */ var
|
|
41013
|
-
/* harmony import */ var
|
|
41303
|
+
/* harmony import */ var _items_hr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(85732);
|
|
41304
|
+
/* harmony import */ var _items_iframe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(466);
|
|
41305
|
+
/* harmony import */ var _items_img__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75711);
|
|
41306
|
+
/* harmony import */ var _items_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59399);
|
|
41307
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38681);
|
|
41308
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9__);
|
|
41309
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(64637);
|
|
41310
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10__);
|
|
41311
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92148);
|
|
41312
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11__);
|
|
41313
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(20115);
|
|
41314
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12__);
|
|
41315
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(94190);
|
|
41316
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13__);
|
|
41317
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51957);
|
|
41318
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14__);
|
|
41319
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(71940);
|
|
41320
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15__);
|
|
41321
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(43218);
|
|
41322
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16__);
|
|
41323
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(48007);
|
|
41324
|
+
/* harmony import */ var jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17__);
|
|
41014
41325
|
/*!
|
|
41015
41326
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41016
41327
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41034,6 +41345,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent
|
|
|
41034
41345
|
|
|
41035
41346
|
|
|
41036
41347
|
|
|
41348
|
+
|
|
41037
41349
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInline = true;
|
|
41038
41350
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineForSelection = false;
|
|
41039
41351
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineKeepOpen = true;
|
|
@@ -41041,7 +41353,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisableF
|
|
|
41041
41353
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.toolbarInlineDisabledButtons = [
|
|
41042
41354
|
'source'
|
|
41043
41355
|
];
|
|
41044
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (
|
|
41356
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_1__.Icon.set('addcolumn', (jodit_plugins_inline_popup_icons_addcolumn_svg__WEBPACK_IMPORTED_MODULE_9___default())).set('addrow', (jodit_plugins_inline_popup_icons_addrow_svg__WEBPACK_IMPORTED_MODULE_10___default())).set('caption', (jodit_plugins_inline_popup_icons_caption_svg__WEBPACK_IMPORTED_MODULE_11___default())).set('headerrow', (jodit_plugins_inline_popup_icons_headerrow_svg__WEBPACK_IMPORTED_MODULE_12___default())).set('merge', (jodit_plugins_inline_popup_icons_merge_svg__WEBPACK_IMPORTED_MODULE_13___default())).set('th', (jodit_plugins_inline_popup_icons_th_svg__WEBPACK_IMPORTED_MODULE_16___default())).set('splitg', (jodit_plugins_inline_popup_icons_splitg_svg__WEBPACK_IMPORTED_MODULE_14___default())).set('splitv', (jodit_plugins_inline_popup_icons_splitv_svg__WEBPACK_IMPORTED_MODULE_15___default())).set('th-list', (jodit_plugins_inline_popup_icons_th_list_svg__WEBPACK_IMPORTED_MODULE_17___default()));
|
|
41045
41357
|
// Register cell popup buttons as global controls so they can be
|
|
41046
41358
|
// referenced by name in custom popup configurations.
|
|
41047
41359
|
// Skip buttons that already exist in controls (e.g. 'align' from justify plugin).
|
|
@@ -41052,12 +41364,13 @@ _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"].forEach((item)=>{
|
|
|
41052
41364
|
});
|
|
41053
41365
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.popup = {
|
|
41054
41366
|
a: _items_a__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
41055
|
-
img:
|
|
41367
|
+
img: _items_img__WEBPACK_IMPORTED_MODULE_7__["default"],
|
|
41056
41368
|
cells: _items_cells__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
41057
|
-
|
|
41058
|
-
|
|
41059
|
-
|
|
41060
|
-
|
|
41369
|
+
hr: _items_hr__WEBPACK_IMPORTED_MODULE_5__["default"],
|
|
41370
|
+
toolbar: _items_toolbar__WEBPACK_IMPORTED_MODULE_8__["default"],
|
|
41371
|
+
jodit: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
41372
|
+
iframe: _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
41373
|
+
'jodit-media': _items_iframe__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
41061
41374
|
selection: [
|
|
41062
41375
|
'bold',
|
|
41063
41376
|
'underline',
|
|
@@ -41245,6 +41558,30 @@ const cmd = (control)=>control.args && (0,jodit_core_helpers_checker__WEBPACK_IM
|
|
|
41245
41558
|
]);
|
|
41246
41559
|
|
|
41247
41560
|
|
|
41561
|
+
/***/ }),
|
|
41562
|
+
|
|
41563
|
+
/***/ 85732:
|
|
41564
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
|
41565
|
+
|
|
41566
|
+
"use strict";
|
|
41567
|
+
/*!
|
|
41568
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41569
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
41570
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
41571
|
+
*/ /**
|
|
41572
|
+
* @module plugins/inline-popup
|
|
41573
|
+
*/ /* harmony default export */ __webpack_exports__["default"] = ([
|
|
41574
|
+
{
|
|
41575
|
+
name: 'delete',
|
|
41576
|
+
icon: 'bin',
|
|
41577
|
+
tooltip: 'Delete',
|
|
41578
|
+
exec: (editor, line)=>{
|
|
41579
|
+
line && editor.e.fire('deleteHorizontalRule', line);
|
|
41580
|
+
}
|
|
41581
|
+
}
|
|
41582
|
+
]);
|
|
41583
|
+
|
|
41584
|
+
|
|
41248
41585
|
/***/ }),
|
|
41249
41586
|
|
|
41250
41587
|
/***/ 466:
|
|
@@ -42057,7 +42394,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('justify', justi
|
|
|
42057
42394
|
if (((_endContainer_nodeValue = endContainer.nodeValue) === null || _endContainer_nodeValue === void 0 ? void 0 : _endContainer_nodeValue.length) === endOffset) {
|
|
42058
42395
|
const { parentNode } = endContainer;
|
|
42059
42396
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isInlineBlock(parentNode) && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.findNotEmptyNeighbor(parentNode, false, this.j.editor)) {
|
|
42060
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.
|
|
42397
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.after(parentNode, this.j.createInside.fake());
|
|
42061
42398
|
}
|
|
42062
42399
|
}
|
|
42063
42400
|
}
|
|
@@ -42809,6 +43146,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.link = {
|
|
|
42809
43146
|
preventReadOnlyNavigation: true,
|
|
42810
43147
|
selectSizeClassName: 3,
|
|
42811
43148
|
selectOptionsClassName: [],
|
|
43149
|
+
selectKeepOtherClassNames: false,
|
|
42812
43150
|
hotkeys: [
|
|
42813
43151
|
'ctrl+k',
|
|
42814
43152
|
'cmd+k'
|
|
@@ -42856,11 +43194,12 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
42856
43194
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(28077);
|
|
42857
43195
|
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(65946);
|
|
42858
43196
|
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91206);
|
|
42859
|
-
/* harmony import */ var
|
|
42860
|
-
/* harmony import */ var
|
|
42861
|
-
/* harmony import */ var
|
|
42862
|
-
/* harmony import */ var
|
|
42863
|
-
/* harmony import */ var
|
|
43197
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(59400);
|
|
43198
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(96007);
|
|
43199
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29434);
|
|
43200
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(51116);
|
|
43201
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(65230);
|
|
43202
|
+
/* harmony import */ var _typed_link__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(99763);
|
|
42864
43203
|
/*!
|
|
42865
43204
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42866
43205
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42883,6 +43222,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
42883
43222
|
|
|
42884
43223
|
|
|
42885
43224
|
|
|
43225
|
+
|
|
42886
43226
|
/**
|
|
42887
43227
|
* Process link. Insert, dblclick or remove format
|
|
42888
43228
|
*/ class link extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_7__.Plugin {
|
|
@@ -42968,7 +43308,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
42968
43308
|
__generateForm(current, close) {
|
|
42969
43309
|
const { jodit } = this;
|
|
42970
43310
|
const i18n = jodit.i18n.bind(jodit);
|
|
42971
|
-
const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode } = jodit.o.link;
|
|
43311
|
+
const { openInNewTabCheckbox, openInNewTabCheckboxDefaultChecked, noFollowCheckbox, formTemplate, formClassName, modeClassName, contentMode, selectKeepOtherClassNames } = jodit.o.link;
|
|
42972
43312
|
const html = formTemplate(jodit);
|
|
42973
43313
|
const form = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.isString)(html) ? jodit.c.fromHTML(html, {
|
|
42974
43314
|
target_checkbox_box: openInNewTabCheckbox,
|
|
@@ -43024,7 +43364,13 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
43024
43364
|
if (noFollowCheckbox && nofollow_checkbox) {
|
|
43025
43365
|
nofollow_checkbox.checked = ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(link, 'rel') || '').split(/\s+/).includes('nofollow');
|
|
43026
43366
|
}
|
|
43027
|
-
|
|
43367
|
+
// Through the button's state, so its text keeps its own element and styles
|
|
43368
|
+
const insertButton = jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(insert, jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UIButton);
|
|
43369
|
+
if (insertButton) {
|
|
43370
|
+
insertButton.state.text = 'Update';
|
|
43371
|
+
} else {
|
|
43372
|
+
insert.textContent = i18n('Update');
|
|
43373
|
+
}
|
|
43028
43374
|
} else {
|
|
43029
43375
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.hide(unlink);
|
|
43030
43376
|
if (jodit.o.link.deriveUrlFromText && url_input && !isImageContent && !url_input.value.trim()) {
|
|
@@ -43089,7 +43435,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
43089
43435
|
}
|
|
43090
43436
|
links.forEach((a)=>{
|
|
43091
43437
|
;(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'href', url_input.value);
|
|
43092
|
-
writeClasses(modeClassName, className_input, className_select, a);
|
|
43438
|
+
writeClasses(modeClassName, className_input, className_select, a, selectKeepOtherClassNames);
|
|
43093
43439
|
if (!isImageContent) {
|
|
43094
43440
|
writeContent(jodit, a, content_input.value, contentWasChanged, url_input.value, contentMode);
|
|
43095
43441
|
}
|
|
@@ -43197,7 +43543,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.link = {
|
|
|
43197
43543
|
if (!jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isText(node) || !node.isConnected || end < 0 || end > node.length || jodit_core_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.closest(node, NO_TYPED_LINKS, jodit.editor)) {
|
|
43198
43544
|
return;
|
|
43199
43545
|
}
|
|
43200
|
-
const found = (0,
|
|
43546
|
+
const found = (0,_typed_link__WEBPACK_IMPORTED_MODULE_13__.findTypedLink)(node.data, end, jodit.o.link.typedLinkTlds, jodit.o.link.typedLinkFileEndings);
|
|
43201
43547
|
if (!found) {
|
|
43202
43548
|
return;
|
|
43203
43549
|
}
|
|
@@ -43296,7 +43642,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
43296
43642
|
*/ function addAnchorList(jodit, url, content, isImage) {
|
|
43297
43643
|
const anchors = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.getAnchors)(jodit.editor);
|
|
43298
43644
|
const field = url === null || url === void 0 ? void 0 : url.closest('.jodit-ui-input__wrapper');
|
|
43299
|
-
const input = field &&
|
|
43645
|
+
const input = field && jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement.closestElement(field, jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_9__.UIElement);
|
|
43300
43646
|
if (!field || !input || !anchors.length) {
|
|
43301
43647
|
return;
|
|
43302
43648
|
}
|
|
@@ -43317,14 +43663,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
43317
43663
|
});
|
|
43318
43664
|
const icon = (name)=>{
|
|
43319
43665
|
var _Icon_makeIcon;
|
|
43320
|
-
return (_Icon_makeIcon =
|
|
43666
|
+
return (_Icon_makeIcon = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(jodit, {
|
|
43321
43667
|
name,
|
|
43322
43668
|
iconURL: '',
|
|
43323
43669
|
fill: '',
|
|
43324
43670
|
scale: undefined
|
|
43325
43671
|
})) !== null && _Icon_makeIcon !== void 0 ? _Icon_makeIcon : c.span();
|
|
43326
43672
|
};
|
|
43327
|
-
const dropdown = new
|
|
43673
|
+
const dropdown = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_11__.Popup(jodit).setMod('padding', false);
|
|
43328
43674
|
const items = [];
|
|
43329
43675
|
let filled = '';
|
|
43330
43676
|
const open = ()=>{
|
|
@@ -43439,7 +43785,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
43439
43785
|
return value;
|
|
43440
43786
|
}
|
|
43441
43787
|
// email address -> mailto:
|
|
43442
|
-
if (
|
|
43788
|
+
if (_typed_link__WEBPACK_IMPORTED_MODULE_13__.EMAIL.test(value)) {
|
|
43443
43789
|
return `mailto:${value}`;
|
|
43444
43790
|
}
|
|
43445
43791
|
// bare domain like example.com or www.example.com/path -> https://
|
|
@@ -43448,7 +43794,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('link', link);
|
|
|
43448
43794
|
}
|
|
43449
43795
|
return '';
|
|
43450
43796
|
}
|
|
43451
|
-
function writeClasses(modeClassName, className_input, className_select, a) {
|
|
43797
|
+
function writeClasses(modeClassName, className_input, className_select, a, keepOtherClassNames) {
|
|
43452
43798
|
if (modeClassName && (className_input !== null && className_input !== void 0 ? className_input : className_select)) {
|
|
43453
43799
|
if (modeClassName === 'input') {
|
|
43454
43800
|
if (className_input.value === '' && a.hasAttribute('class')) {
|
|
@@ -43458,17 +43804,15 @@ function writeClasses(modeClassName, className_input, className_select, a) {
|
|
|
43458
43804
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', className_input.value);
|
|
43459
43805
|
}
|
|
43460
43806
|
} else if (modeClassName === 'select') {
|
|
43461
|
-
|
|
43807
|
+
const classes = (option)=>option.value.split(/\s+/).filter((cn)=>cn.trim().length > 0);
|
|
43808
|
+
if (keepOtherClassNames) {
|
|
43809
|
+
Array.from(className_select.options).forEach((option)=>classes(option).forEach((cn)=>a.classList.remove(cn)));
|
|
43810
|
+
} else {
|
|
43462
43811
|
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
|
|
43463
43812
|
}
|
|
43464
|
-
|
|
43465
|
-
|
|
43466
|
-
|
|
43467
|
-
if (className) {
|
|
43468
|
-
className.split(/\s+/).filter((cn)=>cn.trim().length > 0).forEach((cn)=>{
|
|
43469
|
-
a.classList.add(cn);
|
|
43470
|
-
});
|
|
43471
|
-
}
|
|
43813
|
+
Array.from(className_select.selectedOptions).forEach((option)=>classes(option).forEach((cn)=>a.classList.add(cn)));
|
|
43814
|
+
if (!a.classList.length) {
|
|
43815
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.attr)(a, 'class', null);
|
|
43472
43816
|
}
|
|
43473
43817
|
}
|
|
43474
43818
|
}
|
|
@@ -43682,6 +44026,7 @@ const formTemplate = (editor)=>{
|
|
|
43682
44026
|
|
|
43683
44027
|
"use strict";
|
|
43684
44028
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44029
|
+
/* harmony export */ EMAIL: function() { return /* binding */ EMAIL; },
|
|
43685
44030
|
/* harmony export */ findTypedLink: function() { return /* binding */ findTypedLink; }
|
|
43686
44031
|
/* harmony export */ });
|
|
43687
44032
|
/* harmony import */ var jodit_core_helpers_checker_is_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91764);
|
|
@@ -43780,10 +44125,6 @@ function typedLinkHref(address, tlds, fileEndings) {
|
|
|
43780
44125
|
return labels.length > 1 && labels.every((label)=>LABEL.test(label) && !label.endsWith('-')) && (_tlds__WEBPACK_IMPORTED_MODULE_1__.TLDS.has(ending) || tlds.includes(ending)) && !fileEndings.includes(ending) && /[a-z]/i.test(labels[0]);
|
|
43781
44126
|
}
|
|
43782
44127
|
|
|
43783
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, [
|
|
43784
|
-
/* harmony export */ "EMAIL", 0, /* binding */ EMAIL
|
|
43785
|
-
/* harmony export */ ]);
|
|
43786
|
-
|
|
43787
44128
|
|
|
43788
44129
|
/***/ }),
|
|
43789
44130
|
|
|
@@ -44573,12 +44914,12 @@ class pasteFromWord extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugi
|
|
|
44573
44914
|
}
|
|
44574
44915
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_AS_TEXT:
|
|
44575
44916
|
{
|
|
44576
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html);
|
|
44917
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html, this.j.o.pasteKeepAttributes);
|
|
44577
44918
|
break;
|
|
44578
44919
|
}
|
|
44579
44920
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
|
|
44580
44921
|
{
|
|
44581
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
44922
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.stripTags)((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.cleanFromWord)(html, this.j.o.pasteKeepAttributes), this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
44582
44923
|
break;
|
|
44583
44924
|
}
|
|
44584
44925
|
}
|
|
@@ -44799,6 +45140,9 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.pasteExcludeStripTags
|
|
|
44799
45140
|
'br',
|
|
44800
45141
|
'hr'
|
|
44801
45142
|
];
|
|
45143
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.pasteKeepAttributes = [
|
|
45144
|
+
...jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.PASTE_KEEP_ATTRIBUTES
|
|
45145
|
+
];
|
|
44802
45146
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.pasteHTMLActionList = [
|
|
44803
45147
|
{
|
|
44804
45148
|
value: jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.INSERT_AS_HTML,
|
|
@@ -45165,7 +45509,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.paste = {
|
|
|
45165
45509
|
this.j.buffer.set(jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.CLIPBOARD_ID, html);
|
|
45166
45510
|
switch(action){
|
|
45167
45511
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_CLEAR_HTML:
|
|
45168
|
-
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html));
|
|
45512
|
+
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.cleanFromWord)((0,_helpers__WEBPACK_IMPORTED_MODULE_9__.removeGoogleDocsWrapper)(html), this.j.o.pasteKeepAttributes);
|
|
45169
45513
|
break;
|
|
45170
45514
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_2__.INSERT_ONLY_TEXT:
|
|
45171
45515
|
html = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_6__.stripTags)(html, this.j.ed, new Set(this.j.o.pasteExcludeStripTags), this.j.o.nl2brInPlainText);
|
|
@@ -51184,6 +51528,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_5__.pluginSystem.add('sticky', sticky
|
|
|
51184
51528
|
|
|
51185
51529
|
|
|
51186
51530
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.usePopupForSpecialCharacters = false;
|
|
51531
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharactersColumns = 17;
|
|
51187
51532
|
jodit_config__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.specialCharacters = [
|
|
51188
51533
|
'!',
|
|
51189
51534
|
'"',
|
|
@@ -51845,10 +52190,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51845
52190
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
|
|
51846
52191
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23211);
|
|
51847
52192
|
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28077);
|
|
51848
|
-
/* harmony import */ var
|
|
51849
|
-
/* harmony import */ var
|
|
51850
|
-
/* harmony import */ var
|
|
51851
|
-
/* harmony import */ var
|
|
52193
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28686);
|
|
52194
|
+
/* harmony import */ var jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(93640);
|
|
52195
|
+
/* harmony import */ var jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(18855);
|
|
52196
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18993);
|
|
52197
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91017);
|
|
51852
52198
|
/*!
|
|
51853
52199
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
51854
52200
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -51866,11 +52212,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51866
52212
|
|
|
51867
52213
|
|
|
51868
52214
|
|
|
52215
|
+
|
|
51869
52216
|
/**
|
|
51870
52217
|
* The plugin inserts characters that are not part of the standard keyboard.
|
|
51871
|
-
*/ class symbols extends
|
|
52218
|
+
*/ class symbols extends jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
51872
52219
|
afterInit(jodit) {
|
|
51873
52220
|
jodit.e.on('generateSpecialCharactersTable.symbols', ()=>{
|
|
52221
|
+
const { specialCharactersColumns } = jodit.o;
|
|
52222
|
+
const columns = (0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_4__.isInt)(specialCharactersColumns) && specialCharactersColumns > 0 ? Number(specialCharactersColumns) : 17;
|
|
51874
52223
|
const container = jodit.c.fromHTML(`<div class="jodit-symbols__container">
|
|
51875
52224
|
<div class="jodit-symbols__container_table">
|
|
51876
52225
|
<table class="jodit-symbols__table"><tbody></tbody></table>
|
|
@@ -51879,13 +52228,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51879
52228
|
<div class="jodit-symbols__preview"></div>
|
|
51880
52229
|
</div>
|
|
51881
52230
|
</div>`);
|
|
52231
|
+
container.style.setProperty('--jd-symbols-columns', String(columns));
|
|
51882
52232
|
const preview = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.first(container, (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isHTMLElement(node) && node.classList.contains('jodit-symbols__preview'));
|
|
51883
52233
|
const table = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.first(container, (node)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(node, 'table'));
|
|
51884
52234
|
const body = table.tBodies[0];
|
|
51885
52235
|
const chars = [];
|
|
51886
52236
|
for(let i = 0; i < jodit.o.specialCharacters.length;){
|
|
51887
52237
|
const tr = jodit.c.element('tr');
|
|
51888
|
-
for(let j = 0; j <
|
|
52238
|
+
for(let j = 0; j < columns && i < jodit.o.specialCharacters.length; j += 1, i += 1){
|
|
51889
52239
|
const td = jodit.c.element('td'), a = jodit.c.fromHTML(`<a
|
|
51890
52240
|
data-index="${i}"
|
|
51891
52241
|
data-index-j="${j}"
|
|
@@ -51898,7 +52248,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51898
52248
|
}
|
|
51899
52249
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.append(body, tr);
|
|
51900
52250
|
}
|
|
51901
|
-
const self = this;
|
|
51902
52251
|
jodit.e.on(chars, 'focus', function() {
|
|
51903
52252
|
preview.innerHTML = this.innerHTML;
|
|
51904
52253
|
}).on(chars, 'mousedown', function(e) {
|
|
@@ -51918,16 +52267,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51918
52267
|
}).on(chars, 'keydown', (e)=>{
|
|
51919
52268
|
const target = e.target;
|
|
51920
52269
|
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__.Dom.isTag(target, 'a')) {
|
|
51921
|
-
const index = parseInt((0,
|
|
52270
|
+
const index = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(target, '-index') || '0', 10), jIndex = parseInt((0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_5__.attr)(target, 'data-index-j') || '0', 10);
|
|
51922
52271
|
let newIndex;
|
|
51923
52272
|
switch(e.key){
|
|
51924
52273
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP:
|
|
51925
52274
|
case jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_DOWN:
|
|
51926
|
-
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index -
|
|
52275
|
+
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? index - columns : index + columns;
|
|
51927
52276
|
if (chars[newIndex] === undefined) {
|
|
51928
|
-
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length /
|
|
52277
|
+
newIndex = e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.KEY_UP ? Math.floor(chars.length / columns) * columns + jIndex : jIndex;
|
|
51929
52278
|
if (newIndex > chars.length - 1) {
|
|
51930
|
-
newIndex -=
|
|
52279
|
+
newIndex -= columns;
|
|
51931
52280
|
}
|
|
51932
52281
|
}
|
|
51933
52282
|
chars[newIndex] && chars[newIndex].focus();
|
|
@@ -51960,8 +52309,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51960
52309
|
name: 'symbols',
|
|
51961
52310
|
group: 'insert'
|
|
51962
52311
|
}
|
|
51963
|
-
])
|
|
51964
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(
|
|
52312
|
+
]);
|
|
52313
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_8__);
|
|
51965
52314
|
}
|
|
51966
52315
|
}
|
|
51967
52316
|
jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbols);
|
|
@@ -52002,7 +52351,6 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('symbols', symbo
|
|
|
52002
52351
|
/* harmony export */ });
|
|
52003
52352
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
52004
52353
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28712);
|
|
52005
|
-
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_1__);
|
|
52006
52354
|
/*!
|
|
52007
52355
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
52008
52356
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -55367,7 +55715,7 @@ function _async_to_generator(fn) {
|
|
|
55367
55715
|
});
|
|
55368
55716
|
};
|
|
55369
55717
|
}
|
|
55370
|
-
|
|
55718
|
+
;
|
|
55371
55719
|
|
|
55372
55720
|
|
|
55373
55721
|
/***/ }),
|
|
@@ -55384,7 +55732,7 @@ function _async_to_generator(fn) {
|
|
|
55384
55732
|
function _await_async_generator(value) {
|
|
55385
55733
|
return new _overload_yield_js__WEBPACK_IMPORTED_MODULE_0__._(value, /* kind: await */ 0);
|
|
55386
55734
|
}
|
|
55387
|
-
|
|
55735
|
+
;
|
|
55388
55736
|
|
|
55389
55737
|
|
|
55390
55738
|
/***/ }),
|
|
@@ -55407,7 +55755,7 @@ function _define_property(obj, key, value) {
|
|
|
55407
55755
|
} else obj[key] = value;
|
|
55408
55756
|
return obj;
|
|
55409
55757
|
}
|
|
55410
|
-
|
|
55758
|
+
;
|
|
55411
55759
|
|
|
55412
55760
|
|
|
55413
55761
|
/***/ }),
|
|
@@ -55436,7 +55784,7 @@ function _object_spread(target) {
|
|
|
55436
55784
|
}
|
|
55437
55785
|
return target;
|
|
55438
55786
|
}
|
|
55439
|
-
|
|
55787
|
+
;
|
|
55440
55788
|
|
|
55441
55789
|
|
|
55442
55790
|
/***/ }),
|
|
@@ -55471,7 +55819,7 @@ function _object_spread_props(target, source) {
|
|
|
55471
55819
|
}
|
|
55472
55820
|
return target;
|
|
55473
55821
|
}
|
|
55474
|
-
|
|
55822
|
+
;
|
|
55475
55823
|
|
|
55476
55824
|
|
|
55477
55825
|
/***/ }),
|
|
@@ -55487,7 +55835,7 @@ function _overload_yield(value, /** 0: await 1: delegate */ kind) {
|
|
|
55487
55835
|
this.v = value;
|
|
55488
55836
|
this.k = kind;
|
|
55489
55837
|
}
|
|
55490
|
-
|
|
55838
|
+
;
|
|
55491
55839
|
|
|
55492
55840
|
|
|
55493
55841
|
/***/ }),
|
|
@@ -55512,7 +55860,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
55512
55860
|
}
|
|
55513
55861
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
55514
55862
|
}
|
|
55515
|
-
|
|
55863
|
+
;
|
|
55516
55864
|
|
|
55517
55865
|
|
|
55518
55866
|
/***/ }),
|
|
@@ -55531,7 +55879,7 @@ function _wrap_async_generator(fn) {
|
|
|
55531
55879
|
return new _async_generator_js__WEBPACK_IMPORTED_MODULE_0__._(fn.apply(this, arguments));
|
|
55532
55880
|
};
|
|
55533
55881
|
}
|
|
55534
|
-
|
|
55882
|
+
;
|
|
55535
55883
|
|
|
55536
55884
|
|
|
55537
55885
|
/***/ })
|
|
@@ -55624,7 +55972,7 @@ function _wrap_async_generator(fn) {
|
|
|
55624
55972
|
/******/ }
|
|
55625
55973
|
/******/ var ns = Object.create(null);
|
|
55626
55974
|
/******/ __webpack_require__.r(ns);
|
|
55627
|
-
/******/ var def =
|
|
55975
|
+
/******/ var def = Object.create(null);
|
|
55628
55976
|
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
55629
55977
|
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
55630
55978
|
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
|
@@ -55643,7 +55991,7 @@ function _wrap_async_generator(fn) {
|
|
|
55643
55991
|
/******/ while(i < definition.length) {
|
|
55644
55992
|
/******/ var key = definition[i++];
|
|
55645
55993
|
/******/ var binding = definition[i++];
|
|
55646
|
-
/******/ var descriptor = binding
|
|
55994
|
+
/******/ var descriptor = binding ? { enumerable: true, get: binding } : { enumerable: true, value: definition[i++] };
|
|
55647
55995
|
/******/ if(!__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, descriptor);
|
|
55648
55996
|
/******/ }
|
|
55649
55997
|
/******/ } else {
|
|
@@ -55717,7 +56065,7 @@ function _wrap_async_generator(fn) {
|
|
|
55717
56065
|
/******/ return __webpack_require__.O(result);
|
|
55718
56066
|
/******/ }
|
|
55719
56067
|
/******/
|
|
55720
|
-
/******/ var chunkLoadingGlobal = self["webpackChunkjodit"]
|
|
56068
|
+
/******/ var chunkLoadingGlobal = Array.isArray(self["webpackChunkjodit"]) ? self["webpackChunkjodit"] : (self["webpackChunkjodit"] = []);
|
|
55721
56069
|
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
|
55722
56070
|
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
|
55723
56071
|
/******/ }();
|