jodit 4.19.11 → 4.19.12

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.
Files changed (76) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/es2015/jodit.css +33 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +9 -9
  5. package/es2015/jodit.js +83 -34
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +9 -9
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +9 -9
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +9 -9
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +33 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +9 -9
  23. package/es2021/jodit.js +82 -32
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +9 -9
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +33 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +9 -9
  35. package/es2021.en/jodit.js +82 -32
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +10 -10
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +34 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +101 -34
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/ui/button/tooltip/tooltip.d.ts +6 -0
  61. package/esm/core/ui/button/tooltip/tooltip.js +14 -3
  62. package/esm/core/view/view-with-toolbar.js +6 -1
  63. package/esm/plugins/add-new-line/add-new-line.d.ts +5 -0
  64. package/esm/plugins/add-new-line/add-new-line.js +20 -3
  65. package/esm/plugins/delete/delete.d.ts +7 -0
  66. package/esm/plugins/delete/delete.js +22 -0
  67. package/esm/plugins/hr/hr.js +5 -0
  68. package/esm/plugins/media/media.js +8 -5
  69. package/esm/plugins/resizer/resizer.js +4 -1
  70. package/esm/plugins/select-cells/select-cells.d.ts +1 -0
  71. package/esm/plugins/select-cells/select-cells.js +12 -18
  72. package/package.json +1 -1
  73. package/types/core/ui/button/tooltip/tooltip.d.ts +6 -0
  74. package/types/plugins/add-new-line/add-new-line.d.ts +5 -0
  75. package/types/plugins/delete/delete.d.ts +7 -0
  76. package/types/plugins/select-cells/select-cells.d.ts +1 -0
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
package/es5/polyfills.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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -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.19.11
4
+ * Version: v4.19.12
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3,7 +3,7 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- export const APP_VERSION = "4.19.11";
6
+ export const APP_VERSION = "4.19.12";
7
7
  // prettier-ignore
8
8
  export const ES = "es2020";
9
9
  export const IS_ES_MODERN = true;
@@ -15,6 +15,12 @@ export declare class UITooltip extends UIElement {
15
15
  className(): string;
16
16
  protected render(): string;
17
17
  constructor(view: IViewBased);
18
+ private get __isEnabled();
19
+ /**
20
+ * Show tooltips for the buttons in an element outside the editor's
21
+ * container, such as a toolbar placed by the `toolbar` option
22
+ */
23
+ attach(container: HTMLElement): void;
18
24
  private __attachedContainers;
19
25
  private __onAttach;
20
26
  private __listenClose;
@@ -51,9 +51,7 @@ let UITooltip = UITooltip_1 = class UITooltip extends UIElement {
51
51
  this.__currentTarget = null;
52
52
  this.__delayShowTimeout = 0;
53
53
  this.__hideTimeout = 0;
54
- if (!view.o.textIcons &&
55
- view.o.showTooltip &&
56
- !view.o.useNativeTooltip) {
54
+ if (this.__isEnabled) {
57
55
  this.j.e.on('getContainer', (box) => {
58
56
  this.__onAttach(box);
59
57
  });
@@ -62,6 +60,19 @@ let UITooltip = UITooltip_1 = class UITooltip extends UIElement {
62
60
  });
63
61
  }
64
62
  }
63
+ get __isEnabled() {
64
+ const { o } = this.j;
65
+ return !o.textIcons && Boolean(o.showTooltip) && !o.useNativeTooltip;
66
+ }
67
+ /**
68
+ * Show tooltips for the buttons in an element outside the editor's
69
+ * container, such as a toolbar placed by the `toolbar` option
70
+ */
71
+ attach(container) {
72
+ if (this.__isEnabled) {
73
+ this.__onAttach(container);
74
+ }
75
+ }
65
76
  __onAttach(container) {
66
77
  // TODO Move it inside __show method. Now it is here because testcase failed with capturing
67
78
  Dom.append(getContainer(this.j, UITooltip_1), this.container);
@@ -71,7 +71,12 @@ export class ViewWithToolbar extends View {
71
71
  const buttons = this.o.buttons
72
72
  ? splitArray(this.o.buttons)
73
73
  : [];
74
- (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(this.toolbarContainer);
74
+ const container = this.toolbarContainer;
75
+ (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.setRemoveButtons(this.o.removeButtons).build(buttons.concat(this.o.extraButtons || [])).appendTo(container);
76
+ // The toolbar's own element, as editors can share the one it is placed in
77
+ if (this.toolbar && !Dom.isOrContains(this.container, container)) {
78
+ this.__tooltip.attach(this.toolbar.container);
79
+ }
75
80
  }
76
81
  getRegisteredButtonGroups() {
77
82
  return this.groupToButtons;
@@ -29,6 +29,11 @@ export declare class addNewLine extends Plugin {
29
29
  private __canGetFocus;
30
30
  protected afterInit(editor: IJodit): void;
31
31
  private __addEventListeners;
32
+ /**
33
+ * An empty line with a `<br>`, as Enter makes, so it keeps its height
34
+ * without clean-html's fillEmptyParagraph (#1807)
35
+ */
36
+ private __newLine;
32
37
  private __onClickLine;
33
38
  /**
34
39
  * A paragraph holding only an embed has no place for the caret, so the
@@ -50,7 +50,7 @@ export class addNewLine extends Plugin {
50
50
  };
51
51
  this.__onClickLine = (e) => {
52
52
  const editor = this.j;
53
- const p = editor.createInside.element(editor.o.enter);
53
+ const p = this.__newLine();
54
54
  if (this.__isBeforeContent &&
55
55
  this.__current &&
56
56
  this.__current.parentNode) {
@@ -129,6 +129,18 @@ export class addNewLine extends Plugin {
129
129
  .on(editor.container, 'mouseleave' + '.' + ns, this.__hide)
130
130
  .on(editor.editor, 'mousemove' + '.' + ns, this.__onMouseMove);
131
131
  }
132
+ /**
133
+ * An empty line with a `<br>`, as Enter makes, so it keeps its height
134
+ * without clean-html's fillEmptyParagraph (#1807)
135
+ */
136
+ __newLine() {
137
+ const { j } = this;
138
+ const line = j.createInside.element(j.o.enter);
139
+ if (!Dom.isTag(line, 'br')) {
140
+ Dom.append(line, j.createInside.element('br'));
141
+ }
142
+ return line;
143
+ }
132
144
  /**
133
145
  * A paragraph holding only an embed has no place for the caret, so the
134
146
  * arrow keys can't get past one that ends the content, or before one that
@@ -147,6 +159,11 @@ export class addNewLine extends Plugin {
147
159
  return;
148
160
  }
149
161
  const { startContainer, startOffset } = editor.s.range;
162
+ // A caret in the editor itself, as beside a horizontal line, is in no
163
+ // paragraph, and the browsers can leave it there with text beyond (#1803)
164
+ if (startContainer === editor.editor) {
165
+ return;
166
+ }
150
167
  // Once the browser has moved the caret, if it could. With a 0 timeout
151
168
  // Jodit would run this at once, before the browser moves it
152
169
  editor.async.setTimeout(() => {
@@ -161,7 +178,7 @@ export class addNewLine extends Plugin {
161
178
  !Dom.findNotEmptyNeighbor(block, !forward, editor.editor)) {
162
179
  return;
163
180
  }
164
- const p = editor.createInside.element(editor.o.enter);
181
+ const p = this.__newLine();
165
182
  forward
166
183
  ? Dom.append(editor.editor, p)
167
184
  : Dom.prepend(editor.editor, p);
@@ -178,7 +195,7 @@ export class addNewLine extends Plugin {
178
195
  editor.s.isCollapsed()) {
179
196
  const editorBound = offset(editor.editor, editor, editor.ed);
180
197
  const top = e.pageY - editor.ew.scrollX;
181
- const p = editor.createInside.element(editor.o.enter);
198
+ const p = this.__newLine();
182
199
  if (Math.abs(top - editorBound.top) <
183
200
  Math.abs(top - (editorBound.height + editorBound.top)) &&
184
201
  editor.editor.firstChild) {
@@ -20,6 +20,13 @@ export declare class deleteCommand extends Plugin {
20
20
  */
21
21
  private __afterDeleteCommand;
22
22
  private __onDeleteCommand;
23
+ /**
24
+ * Firefox selects cells whole from their row, as after a drag into or out
25
+ * of a table nested in a cell, and `deleteContents` would remove them. The
26
+ * edges move into the cells, so their content is cleared instead, as in
27
+ * Firefox's own delete
28
+ */
29
+ private __moveEdgesIntoCells;
23
30
  /**
24
31
  * A selection that starts or ends in a table cell clears the selected part
25
32
  * of each cell it covers and keeps the cells, as the browsers do.
@@ -83,6 +83,7 @@ export class deleteCommand extends Plugin {
83
83
  }
84
84
  jodit.s.expandSelection();
85
85
  const range = jodit.s.range;
86
+ this.__moveEdgesIntoCells(range);
86
87
  const caret = this.__clearSelectedCells(range);
87
88
  if (caret && range.collapsed) {
88
89
  jodit.s.selectRange(caret);
@@ -104,6 +105,27 @@ export class deleteCommand extends Plugin {
104
105
  jodit.s.selectRange(caret !== null && caret !== void 0 ? caret : range);
105
106
  return false;
106
107
  }
108
+ /**
109
+ * Firefox selects cells whole from their row, as after a drag into or out
110
+ * of a table nested in a cell, and `deleteContents` would remove them. The
111
+ * edges move into the cells, so their content is cleared instead, as in
112
+ * Firefox's own delete
113
+ */
114
+ __moveEdgesIntoCells(range) {
115
+ const { startContainer, startOffset, endContainer, endOffset } = range;
116
+ const first = Dom.isTag(startContainer, 'tr')
117
+ ? startContainer.childNodes[startOffset]
118
+ : null;
119
+ const last = Dom.isTag(endContainer, 'tr')
120
+ ? endContainer.childNodes[endOffset - 1]
121
+ : null;
122
+ if (Dom.isCell(first)) {
123
+ range.setStart(first, 0);
124
+ }
125
+ if (Dom.isCell(last)) {
126
+ range.setEnd(last, last.childNodes.length);
127
+ }
128
+ }
107
129
  /**
108
130
  * A selection that starts or ends in a table cell clears the selected part
109
131
  * of each cell it covers and keeps the cells, as the browsers do.
@@ -47,6 +47,11 @@ export function hr(editor) {
47
47
  return false;
48
48
  }
49
49
  const p = editor.createInside.element(editor.o.enter);
50
+ // As Enter's new line has, so it keeps its height without clean-html's
51
+ // fillEmptyParagraph (#1807)
52
+ if (!Dom.isTag(p, 'br')) {
53
+ Dom.append(p, editor.createInside.element('br'));
54
+ }
50
55
  Dom.after(elm, p);
51
56
  editor.s.setCursorIn(p);
52
57
  return false;
@@ -36,15 +36,18 @@ export function media(editor) {
36
36
  });
37
37
  attr(wrapper, 'style', attr(element, 'style'));
38
38
  // The wrapper fits the media, whose size changes as its metadata loads
39
- // and as it's resized. A percentage width is of the line, so it takes that
39
+ // and as it's resized. It's inline, as the media is by default, so the
40
+ // line's text-align still places it, or a block when the media is one.
41
+ // A percentage width is of the line, so the wrapper is a block that
42
+ // takes the line, and the media in it follows the text-align it inherits
40
43
  const fit = () => {
44
+ const ofLine = cssInline(media, 'width').endsWith('%');
41
45
  css(wrapper, {
42
- display: cssInline(media, 'display') === 'inline-block'
46
+ display: !ofLine &&
47
+ /^inline/.test(css(media, 'display').toString())
43
48
  ? 'inline-block'
44
49
  : 'block',
45
- width: cssInline(media, 'width').endsWith('%')
46
- ? ''
47
- : 'fit-content',
50
+ width: ofLine ? '' : 'fit-content',
48
51
  height: ''
49
52
  });
50
53
  };
@@ -488,8 +488,11 @@ export class resizer extends Plugin {
488
488
  // is nothing measurable at all, let the wrapper size itself.
489
489
  const width = element.offsetWidth || attrPixelSize(element, 'width');
490
490
  const height = element.offsetHeight || attrPixelSize(element, 'height');
491
+ // The wrapper takes the iframe's place in its line: inline, as an
492
+ // iframe is by default, so the line's text-align still places it,
493
+ // or a block when the iframe is one
491
494
  css(wrapper, {
492
- display: cssInline(element, 'display') === 'inline-block'
495
+ display: /^inline/.test(css(element, 'display').toString())
493
496
  ? 'inline-block'
494
497
  : 'block'
495
498
  });
@@ -80,6 +80,7 @@ export declare class selectCells extends Plugin {
80
80
  * On click in outside - remove selection
81
81
  */
82
82
  private __onRemoveSelection;
83
+ private __cellUnder;
83
84
  /**
84
85
  * Stop a selection process
85
86
  */
@@ -240,17 +240,14 @@ export class selectCells extends Plugin {
240
240
  * Mouse move inside the table
241
241
  */
242
242
  __onMove(table, e) {
243
- var _a, _b;
243
+ var _a;
244
244
  if (this.j.o.readonly && !this.j.isLocked) {
245
245
  return;
246
246
  }
247
247
  if (this.j.isLockedNotBy(key)) {
248
248
  return;
249
249
  }
250
- // Inside Shadow DOM `document.elementFromPoint` returns the shadow
251
- // host, so the lookup must start from the shadow root
252
- const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
253
- const cell = node && Dom.closest(node, ['td', 'th'], table);
250
+ const cell = this.__cellUnder(e, table);
254
251
  if (!cell || !this.__selectedCell) {
255
252
  return;
256
253
  }
@@ -276,7 +273,7 @@ export class selectCells extends Plugin {
276
273
  }
277
274
  const cellsCount = this.__tableModule.getAllSelectedCells().length;
278
275
  if (cellsCount > 1) {
279
- (_b = this.j.s.sel) === null || _b === void 0 ? void 0 : _b.removeAllRanges();
276
+ (_a = this.j.s.sel) === null || _a === void 0 ? void 0 : _a.removeAllRanges();
280
277
  }
281
278
  this.j.e.fire('hidePopup');
282
279
  e.stopPropagation();
@@ -297,30 +294,27 @@ export class selectCells extends Plugin {
297
294
  this.__isSelectionMode = false;
298
295
  this.__selectedCell = null;
299
296
  }
297
+ // The cell of this table under the pointer; over a table nested in a cell, the mouse is still in that cell
298
+ __cellUnder(e, table) {
299
+ var _a;
300
+ // Inside Shadow DOM `document.elementFromPoint` returns the shadow
301
+ // host, so the lookup must start from the shadow root
302
+ const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
303
+ return Dom.closest(node, elm => Dom.isCell(elm) && !Dom.closest(elm, 'table', table), table);
304
+ }
300
305
  /**
301
306
  * Stop a selection process
302
307
  */
303
308
  __onStopSelection(table, e) {
304
- var _a;
305
309
  if (!this.__selectedCell) {
306
310
  return;
307
311
  }
308
312
  this.__isSelectionMode = false;
309
313
  this.j.unlock();
310
- // Inside Shadow DOM `document.elementFromPoint` returns the shadow
311
- // host, so the lookup must start from the shadow root
312
- const node = ((_a = this.j.o.shadowRoot) !== null && _a !== void 0 ? _a : this.j.ed).elementFromPoint(e.clientX, e.clientY);
313
- if (!node) {
314
- return;
315
- }
316
- const cell = Dom.closest(node, ['td', 'th'], table);
314
+ const cell = this.__cellUnder(e, table);
317
315
  if (!cell) {
318
316
  return;
319
317
  }
320
- const ownTable = Dom.closest(cell, 'table', table);
321
- if (ownTable && ownTable !== table) {
322
- return; // Nested tables
323
- }
324
318
  this.__showCellsPopup(table, [cell, this.__selectedCell]);
325
319
  this.__stopListening();
326
320
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jodit",
3
- "version": "4.19.11",
3
+ "version": "4.19.12",
4
4
  "description": "Jodit is an awesome and useful wysiwyg editor with filebrowser",
5
5
  "main": "esm/index.js",
6
6
  "types": "types/index.d.ts",
@@ -15,6 +15,12 @@ export declare class UITooltip extends UIElement {
15
15
  className(): string;
16
16
  protected render(): string;
17
17
  constructor(view: IViewBased);
18
+ private get __isEnabled();
19
+ /**
20
+ * Show tooltips for the buttons in an element outside the editor's
21
+ * container, such as a toolbar placed by the `toolbar` option
22
+ */
23
+ attach(container: HTMLElement): void;
18
24
  private __attachedContainers;
19
25
  private __onAttach;
20
26
  private __listenClose;
@@ -29,6 +29,11 @@ export declare class addNewLine extends Plugin {
29
29
  private __canGetFocus;
30
30
  protected afterInit(editor: IJodit): void;
31
31
  private __addEventListeners;
32
+ /**
33
+ * An empty line with a `<br>`, as Enter makes, so it keeps its height
34
+ * without clean-html's fillEmptyParagraph (#1807)
35
+ */
36
+ private __newLine;
32
37
  private __onClickLine;
33
38
  /**
34
39
  * A paragraph holding only an embed has no place for the caret, so the
@@ -20,6 +20,13 @@ export declare class deleteCommand extends Plugin {
20
20
  */
21
21
  private __afterDeleteCommand;
22
22
  private __onDeleteCommand;
23
+ /**
24
+ * Firefox selects cells whole from their row, as after a drag into or out
25
+ * of a table nested in a cell, and `deleteContents` would remove them. The
26
+ * edges move into the cells, so their content is cleared instead, as in
27
+ * Firefox's own delete
28
+ */
29
+ private __moveEdgesIntoCells;
23
30
  /**
24
31
  * A selection that starts or ends in a table cell clears the selected part
25
32
  * of each cell it covers and keeps the cells, as the browsers do.
@@ -80,6 +80,7 @@ export declare class selectCells extends Plugin {
80
80
  * On click in outside - remove selection
81
81
  */
82
82
  private __onRemoveSelection;
83
+ private __cellUnder;
83
84
  /**
84
85
  * Stop a selection process
85
86
  */