suneditor 2.47.4 → 2.47.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suneditor",
3
- "version": "2.47.4",
3
+ "version": "2.47.5",
4
4
  "description": "Vanilla javascript based WYSIWYG web editor, with no dependencies",
5
5
  "author": "JiHong.Lee",
6
6
  "license": "MIT",
package/src/lang/hu.js CHANGED
@@ -53,7 +53,7 @@
53
53
  hr_dotted: 'Pontozott',
54
54
  hr_dashed: 'Szaggatott',
55
55
  table: 'Táblázat',
56
- link: 'Link',
56
+ link: 'Hivatkozás',
57
57
  math: 'Matematika',
58
58
  image: 'Kép',
59
59
  video: 'Videó',
@@ -73,7 +73,7 @@
73
73
  template: 'Minta',
74
74
  lineHeight: 'Sormagasság',
75
75
  paragraphStyle: 'Bekezdésstílus',
76
- textStyle: 'Betűstílus',
76
+ textStyle: 'Karakterstílus',
77
77
  imageGallery: 'Képgalléria',
78
78
  dir_ltr: 'Balról jobbra',
79
79
  dir_rtl: 'Jobbról balra',
@@ -157,8 +157,8 @@
157
157
  VerticalSplit: 'Szétválasztás függőlegesen'
158
158
  },
159
159
  menu: {
160
- spaced: 'Széthúzott',
161
- bordered: 'Körvonal',
160
+ spaced: 'Ritkított',
161
+ bordered: 'Keretezett',
162
162
  neon: 'Neon',
163
163
  translucent: 'Áttetsző',
164
164
  shadow: 'Árnyék',
package/src/lib/core.js CHANGED
@@ -6355,6 +6355,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
6355
6355
  _responsiveCurrentSize: 'default',
6356
6356
  _responsiveButtonSize: null,
6357
6357
  _responsiveButtons: null,
6358
+ _deleteKeyCode: new _w.RegExp('^(8|46)$'),
6358
6359
  _cursorMoveKeyCode: new _w.RegExp('^(8|3[2-9]|40|46)$'),
6359
6360
  _directionKeyCode: new _w.RegExp('^(8|13|3[2-9]|40|46)$'),
6360
6361
  _nonTextKeyCode: new _w.RegExp('^(8|13|1[6-9]|20|27|3[3-9]|40|45|46|11[2-9]|12[0-3]|144|145)$'),
@@ -7918,6 +7919,11 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
7918
7919
  core.setRange(selectionNode, so < 0 ? 0 : so, selectionNode, eo < 0 ? 0 : eo);
7919
7920
  }
7920
7921
 
7922
+ if (event._deleteKeyCode.test(keyCode) && formatEl && util.onlyZeroWidthSpace(formatEl.textContent) && !formatEl.previousElementSibling) {
7923
+ formatEl.innerHTML = '<br>';
7924
+ core.setRange(formatEl, 0, formatEl, 0);
7925
+ }
7926
+
7921
7927
  core._charCount('');
7922
7928
 
7923
7929
  // user event