jodit-pro-react 5.6.9 → 5.6.11
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.
|
@@ -4770,6 +4770,14 @@ svg.jodit-icon_speechRecognize {
|
|
|
4770
4770
|
border-color: #66afe9;
|
|
4771
4771
|
outline: 0;
|
|
4772
4772
|
}
|
|
4773
|
+
.jodit .jodit-select {
|
|
4774
|
+
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m9%209%203-3%203%203m-6%206%203%203%203-3%22%2F%3E%3C%2Fsvg%3E);
|
|
4775
|
+
background-position: right calc(var(--jd-padding-default)/2) center;
|
|
4776
|
+
background-repeat: no-repeat;
|
|
4777
|
+
background-size: var(--jd-icon-middle-size) var(--jd-icon-middle-size);
|
|
4778
|
+
padding-right: calc(var(--jd-padding-default)*3);
|
|
4779
|
+
text-overflow: ellipsis;
|
|
4780
|
+
}
|
|
4773
4781
|
.jodit-checkbox {
|
|
4774
4782
|
border: 0;
|
|
4775
4783
|
cursor: pointer;
|
|
@@ -4781,12 +4789,6 @@ svg.jodit-icon_speechRecognize {
|
|
|
4781
4789
|
width: 16px;
|
|
4782
4790
|
z-index: 2;
|
|
4783
4791
|
}
|
|
4784
|
-
.jodit-select {
|
|
4785
|
-
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m9%209%203-3%203%203m-6%206%203%203%203-3%22%2F%3E%3C%2Fsvg%3E);
|
|
4786
|
-
background-position: 98% 50%;
|
|
4787
|
-
background-repeat: no-repeat;
|
|
4788
|
-
padding-right: calc(var(--jd-padding-default)*2);
|
|
4789
|
-
}
|
|
4790
4792
|
.jodit-textarea {
|
|
4791
4793
|
height: auto;
|
|
4792
4794
|
}
|
|
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
|
|
|
193
193
|
var init_constants = __esm({
|
|
194
194
|
"node_modules/jodit/esm/core/constants.js"() {
|
|
195
195
|
"use strict";
|
|
196
|
-
APP_VERSION = "4.15.
|
|
196
|
+
APP_VERSION = "4.15.2";
|
|
197
197
|
ES = "es2020";
|
|
198
198
|
IS_ES_MODERN = true;
|
|
199
199
|
IS_ES_NEXT = true;
|
|
@@ -14096,7 +14096,7 @@ Config.prototype.controls.filebrowser = {
|
|
|
14096
14096
|
sort: {
|
|
14097
14097
|
isInput: true,
|
|
14098
14098
|
getContent: (fb) => {
|
|
14099
|
-
const select2 = fb.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${fb.i18n("Sort by changed")} (\
|
|
14099
|
+
const select2 = fb.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${fb.i18n("Sort by changed")} (\u2191)</option><option value="changed-desc">${fb.i18n("Sort by changed")} (\u2193)</option><option value="name-asc">${fb.i18n("Sort by name")} (\u2191)</option><option value="name-desc">${fb.i18n("Sort by name")} (\u2193)</option><option value="size-asc">${fb.i18n("Sort by size")} (\u2191)</option><option value="size-desc">${fb.i18n("Sort by size")} (\u2193)</option></select>`);
|
|
14100
14100
|
select2.value = fb.state.sortBy;
|
|
14101
14101
|
fb.e.on("sort.filebrowser", (value) => {
|
|
14102
14102
|
if (select2.value !== value) {
|
|
@@ -23499,9 +23499,9 @@ init_plugin();
|
|
|
23499
23499
|
init_constants();
|
|
23500
23500
|
init_dom();
|
|
23501
23501
|
init_scroll_into_view();
|
|
23502
|
-
function checkBR(fake, jodit, shiftKeyPressed) {
|
|
23502
|
+
function checkBR(fake, jodit, shiftKeyPressed, block) {
|
|
23503
23503
|
const isMultiLineBlock = Boolean(Dom.closest(fake, ["pre", "blockquote"], jodit.editor));
|
|
23504
|
-
const isCell = !isMultiLineBlock && Dom.closest(fake, ["td", "th"], jodit.editor);
|
|
23504
|
+
const isCell = !isMultiLineBlock && (block ? Dom.isCell(block) : Boolean(Dom.closest(fake, ["td", "th"], jodit.editor)));
|
|
23505
23505
|
const isBRMode = jodit.o.enter.toLowerCase() === BR.toLowerCase();
|
|
23506
23506
|
if (isBRMode || isCell || shiftKeyPressed && !isMultiLineBlock || !shiftKeyPressed && isMultiLineBlock) {
|
|
23507
23507
|
if (isMultiLineBlock && checkSeveralBR(fake)) {
|
|
@@ -23734,7 +23734,7 @@ var enter = class extends Plugin {
|
|
|
23734
23734
|
moveCursorOutFromSpecialTags(jodit, fake, ["a"]);
|
|
23735
23735
|
let block = getBlockWrapper(fake, jodit);
|
|
23736
23736
|
const isLi = Dom.isLeaf(block);
|
|
23737
|
-
if ((!isLi || (event === null || event === void 0 ? void 0 : event.shiftKey)) && checkBR(fake, jodit, event === null || event === void 0 ? void 0 : event.shiftKey)) {
|
|
23737
|
+
if ((!isLi || (event === null || event === void 0 ? void 0 : event.shiftKey)) && checkBR(fake, jodit, event === null || event === void 0 ? void 0 : event.shiftKey, block)) {
|
|
23738
23738
|
return false;
|
|
23739
23739
|
}
|
|
23740
23740
|
if (!block && !hasPreviousBlock(fake, jodit)) {
|
package/build/esm/index.css
CHANGED
|
@@ -4770,6 +4770,14 @@ svg.jodit-icon_speechRecognize {
|
|
|
4770
4770
|
border-color: #66afe9;
|
|
4771
4771
|
outline: 0;
|
|
4772
4772
|
}
|
|
4773
|
+
.jodit .jodit-select {
|
|
4774
|
+
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m9%209%203-3%203%203m-6%206%203%203%203-3%22%2F%3E%3C%2Fsvg%3E);
|
|
4775
|
+
background-position: right calc(var(--jd-padding-default)/2) center;
|
|
4776
|
+
background-repeat: no-repeat;
|
|
4777
|
+
background-size: var(--jd-icon-middle-size) var(--jd-icon-middle-size);
|
|
4778
|
+
padding-right: calc(var(--jd-padding-default)*3);
|
|
4779
|
+
text-overflow: ellipsis;
|
|
4780
|
+
}
|
|
4773
4781
|
.jodit-checkbox {
|
|
4774
4782
|
border: 0;
|
|
4775
4783
|
cursor: pointer;
|
|
@@ -4781,12 +4789,6 @@ svg.jodit-icon_speechRecognize {
|
|
|
4781
4789
|
width: 16px;
|
|
4782
4790
|
z-index: 2;
|
|
4783
4791
|
}
|
|
4784
|
-
.jodit-select {
|
|
4785
|
-
background-image: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222.5%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m9%209%203-3%203%203m-6%206%203%203%203-3%22%2F%3E%3C%2Fsvg%3E);
|
|
4786
|
-
background-position: 98% 50%;
|
|
4787
|
-
background-repeat: no-repeat;
|
|
4788
|
-
padding-right: calc(var(--jd-padding-default)*2);
|
|
4789
|
-
}
|
|
4790
4792
|
.jodit-textarea {
|
|
4791
4793
|
height: auto;
|
|
4792
4794
|
}
|