@toast-ui/editor 2.5.0 → 2.5.4

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/dist/i18n/ar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 2.5.0
3
+ * @version 2.5.4
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -254,6 +254,11 @@
254
254
  content: '';
255
255
  }
256
256
 
257
+ .tui-editor-contents th ol,
258
+ .tui-editor-contents th ul {
259
+ color: #fff;
260
+ }
261
+
257
262
  .tui-editor-contents hr {
258
263
  border-top: 1px solid #eee;
259
264
  margin: 16px 0;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -315,21 +315,19 @@ var getPrevOffsetNodeUntil = function getPrevOffsetNodeUntil(node, index, untilN
315
315
  };
316
316
 
317
317
  var getParentUntilBy = function getParentUntilBy(node, matchCondition, stopCondition) {
318
- var foundedNode;
319
-
320
318
  while (node.parentNode && !matchCondition(node.parentNode)) {
321
319
  node = node.parentNode;
322
320
 
323
- if (stopCondition && stopCondition(node.parentNode)) {
321
+ if (stopCondition && stopCondition(node)) {
324
322
  break;
325
323
  }
326
324
  }
327
325
 
328
326
  if (matchCondition(node.parentNode)) {
329
- foundedNode = node;
327
+ return node;
330
328
  }
331
329
 
332
- return foundedNode;
330
+ return null;
333
331
  };
334
332
  /**
335
333
  * get parent node until paseed node name
@@ -1100,13 +1098,15 @@ function isContain(element, contained) {
1100
1098
  * Gets closest node matching by selector
1101
1099
  * @param {Node} node - target node
1102
1100
  * @param {string|Node} found - selector or element to find node
1101
+ * @param {Node} [root] - root node
1103
1102
  * @returns {?Node} - found node
1104
1103
  * @ignore
1105
1104
  */
1106
1105
 
1107
1106
 
1108
- function closest(node, found) {
1107
+ function closest(node, found, root) {
1109
1108
  var condition;
1109
+ root = root || document;
1110
1110
 
1111
1111
  if (tui_code_snippet_type_isString__WEBPACK_IMPORTED_MODULE_2___default()(found)) {
1112
1112
  condition = function condition(target) {
@@ -1118,7 +1118,7 @@ function closest(node, found) {
1118
1118
  };
1119
1119
  }
1120
1120
 
1121
- while (node && node !== document) {
1121
+ while (node && node !== root) {
1122
1122
  if (isElemNode(node) && condition(node)) {
1123
1123
  return node;
1124
1124
  }
@@ -1741,7 +1741,7 @@ Command.TYPE = {
1741
1741
  var common = __webpack_require__(12);
1742
1742
 
1743
1743
  // EXTERNAL MODULE: ./src/js/utils/map.js
1744
- var map = __webpack_require__(23);
1744
+ var map = __webpack_require__(24);
1745
1745
 
1746
1746
  // CONCATENATED MODULE: ./src/js/commandManager.js
1747
1747
  /**
@@ -3090,121 +3090,6 @@ var n;if(Object.defineProperty(t,"__esModule",{value:!0}),String.fromCodePoint)n
3090
3090
  /* 23 */
3091
3091
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3092
3092
 
3093
- "use strict";
3094
- /* harmony import */ var tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
3095
- /* harmony import */ var tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0__);
3096
- /* harmony import */ var tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
3097
- /* harmony import */ var tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1__);
3098
-
3099
-
3100
- /**
3101
- * @class
3102
- * @ignore
3103
- * @classdesc ES6 Map
3104
- */
3105
-
3106
- var Map = /*#__PURE__*/function () {
3107
- function Map() {
3108
- this._keys = [];
3109
- this._values = [];
3110
- }
3111
-
3112
- var _proto = Map.prototype;
3113
-
3114
- _proto._getKeyIndex = function _getKeyIndex(key) {
3115
- return tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0___default()(key, this._keys);
3116
- };
3117
-
3118
- _proto.get = function get(key) {
3119
- return this._values[this._getKeyIndex(key)];
3120
- };
3121
-
3122
- _proto.set = function set(key, value) {
3123
- var keyIndex = this._getKeyIndex(key);
3124
-
3125
- if (keyIndex > -1) {
3126
- this._values[keyIndex] = value;
3127
- } else {
3128
- this._keys.push(key);
3129
-
3130
- this._values.push(value);
3131
- }
3132
- };
3133
-
3134
- _proto.has = function has(key) {
3135
- return this._getKeyIndex(key) > -1;
3136
- };
3137
-
3138
- _proto.delete = function _delete(key) {
3139
- var keyIndex = this._getKeyIndex(key);
3140
-
3141
- if (keyIndex > -1) {
3142
- this._keys.splice(keyIndex, 1);
3143
-
3144
- this._values.splice(keyIndex, 1);
3145
- }
3146
- };
3147
-
3148
- _proto.forEach = function forEach(callback, thisArg) {
3149
- var _this = this;
3150
-
3151
- if (thisArg === void 0) {
3152
- thisArg = this;
3153
- }
3154
-
3155
- tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1___default()(this._values, function (value, index) {
3156
- if (value && _this._keys[index]) {
3157
- callback.call(thisArg, value, _this._keys[index], _this);
3158
- }
3159
- });
3160
- };
3161
-
3162
- return Map;
3163
- }();
3164
-
3165
- /* harmony default export */ __webpack_exports__["a"] = (Map);
3166
-
3167
- /***/ }),
3168
- /* 24 */
3169
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3170
-
3171
- "use strict";
3172
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return setOffsetHeight; });
3173
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setOffsetTop; });
3174
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getOffsetHeight; });
3175
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getOffsetTop; });
3176
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return removeOffsetInfoByNode; });
3177
- /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
3178
- /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__);
3179
-
3180
- var offsetInfoMap = {};
3181
- function setOffsetHeight(id, height) {
3182
- offsetInfoMap[id] = offsetInfoMap[id] || {};
3183
- offsetInfoMap[id].height = height;
3184
- }
3185
- function setOffsetTop(id, offsetTop) {
3186
- offsetInfoMap[id] = offsetInfoMap[id] || {};
3187
- offsetInfoMap[id].offsetTop = offsetTop;
3188
- }
3189
- function getOffsetHeight(id) {
3190
- return offsetInfoMap[id] && offsetInfoMap[id].height;
3191
- }
3192
- function getOffsetTop(id) {
3193
- return offsetInfoMap[id] && offsetInfoMap[id].offsetTop;
3194
- }
3195
- function removeOffsetInfoByNode(node) {
3196
- if (node) {
3197
- delete offsetInfoMap[node.getAttribute('data-nodeid')];
3198
- tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0___default()(node.children).forEach(function (child) {
3199
- removeOffsetInfoByNode(child);
3200
- });
3201
- }
3202
- }
3203
-
3204
- /***/ }),
3205
- /* 25 */
3206
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3207
-
3208
3093
  "use strict";
3209
3094
  /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
3210
3095
  /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__);
@@ -3315,6 +3200,121 @@ function leaveOnlyWhitelistAttribute(html) {
3315
3200
 
3316
3201
  /* harmony default export */ __webpack_exports__["a"] = (htmlSanitizer);
3317
3202
 
3203
+ /***/ }),
3204
+ /* 24 */
3205
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3206
+
3207
+ "use strict";
3208
+ /* harmony import */ var tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
3209
+ /* harmony import */ var tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0__);
3210
+ /* harmony import */ var tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
3211
+ /* harmony import */ var tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1__);
3212
+
3213
+
3214
+ /**
3215
+ * @class
3216
+ * @ignore
3217
+ * @classdesc ES6 Map
3218
+ */
3219
+
3220
+ var Map = /*#__PURE__*/function () {
3221
+ function Map() {
3222
+ this._keys = [];
3223
+ this._values = [];
3224
+ }
3225
+
3226
+ var _proto = Map.prototype;
3227
+
3228
+ _proto._getKeyIndex = function _getKeyIndex(key) {
3229
+ return tui_code_snippet_array_inArray__WEBPACK_IMPORTED_MODULE_0___default()(key, this._keys);
3230
+ };
3231
+
3232
+ _proto.get = function get(key) {
3233
+ return this._values[this._getKeyIndex(key)];
3234
+ };
3235
+
3236
+ _proto.set = function set(key, value) {
3237
+ var keyIndex = this._getKeyIndex(key);
3238
+
3239
+ if (keyIndex > -1) {
3240
+ this._values[keyIndex] = value;
3241
+ } else {
3242
+ this._keys.push(key);
3243
+
3244
+ this._values.push(value);
3245
+ }
3246
+ };
3247
+
3248
+ _proto.has = function has(key) {
3249
+ return this._getKeyIndex(key) > -1;
3250
+ };
3251
+
3252
+ _proto.delete = function _delete(key) {
3253
+ var keyIndex = this._getKeyIndex(key);
3254
+
3255
+ if (keyIndex > -1) {
3256
+ this._keys.splice(keyIndex, 1);
3257
+
3258
+ this._values.splice(keyIndex, 1);
3259
+ }
3260
+ };
3261
+
3262
+ _proto.forEach = function forEach(callback, thisArg) {
3263
+ var _this = this;
3264
+
3265
+ if (thisArg === void 0) {
3266
+ thisArg = this;
3267
+ }
3268
+
3269
+ tui_code_snippet_collection_forEachArray__WEBPACK_IMPORTED_MODULE_1___default()(this._values, function (value, index) {
3270
+ if (value && _this._keys[index]) {
3271
+ callback.call(thisArg, value, _this._keys[index], _this);
3272
+ }
3273
+ });
3274
+ };
3275
+
3276
+ return Map;
3277
+ }();
3278
+
3279
+ /* harmony default export */ __webpack_exports__["a"] = (Map);
3280
+
3281
+ /***/ }),
3282
+ /* 25 */
3283
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3284
+
3285
+ "use strict";
3286
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return setOffsetHeight; });
3287
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setOffsetTop; });
3288
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getOffsetHeight; });
3289
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getOffsetTop; });
3290
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return removeOffsetInfoByNode; });
3291
+ /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
3292
+ /* harmony import */ var tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0__);
3293
+
3294
+ var offsetInfoMap = {};
3295
+ function setOffsetHeight(id, height) {
3296
+ offsetInfoMap[id] = offsetInfoMap[id] || {};
3297
+ offsetInfoMap[id].height = height;
3298
+ }
3299
+ function setOffsetTop(id, offsetTop) {
3300
+ offsetInfoMap[id] = offsetInfoMap[id] || {};
3301
+ offsetInfoMap[id].offsetTop = offsetTop;
3302
+ }
3303
+ function getOffsetHeight(id) {
3304
+ return offsetInfoMap[id] && offsetInfoMap[id].height;
3305
+ }
3306
+ function getOffsetTop(id) {
3307
+ return offsetInfoMap[id] && offsetInfoMap[id].offsetTop;
3308
+ }
3309
+ function removeOffsetInfoByNode(node) {
3310
+ if (node) {
3311
+ delete offsetInfoMap[node.getAttribute('data-nodeid')];
3312
+ tui_code_snippet_collection_toArray__WEBPACK_IMPORTED_MODULE_0___default()(node.children).forEach(function (child) {
3313
+ removeOffsetInfoByNode(child);
3314
+ });
3315
+ }
3316
+ }
3317
+
3318
3318
  /***/ }),
3319
3319
  /* 26 */
3320
3320
  /***/ (function(module, exports, __webpack_require__) {
@@ -3756,7 +3756,7 @@ function getPluginInfo(plugins) {
3756
3756
 
3757
3757
  /*!
3758
3758
  * to-mark
3759
- * @version 1.0.1 | Wed Oct 21 2020
3759
+ * @version 1.0.1 | Tue Apr 13 2021
3760
3760
  */
3761
3761
  (function webpackUniversalModuleDefinition(root, factory) {
3762
3762
  if(true)
@@ -5108,7 +5108,7 @@ module.exports = isNumber;
5108
5108
  /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
5109
5109
  /* harmony import */ var _htmlRenderConvertors__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
5110
5110
  /* harmony import */ var _scroll_helper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18);
5111
- /* harmony import */ var _scroll_cache_offsetInfo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24);
5111
+ /* harmony import */ var _scroll_cache_offsetInfo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25);
5112
5112
  /* harmony import */ var _utils_markdown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(2);
5113
5113
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
5114
5114
 
@@ -5305,17 +5305,19 @@ var MarkdownPreview = /*#__PURE__*/function (_Preview) {
5305
5305
  var endEl = this._getElementByNodeId(endNodeId);
5306
5306
 
5307
5307
  if (startEl) {
5308
+ var _el;
5309
+
5308
5310
  startEl.insertAdjacentHTML('beforebegin', newHtml);
5309
5311
  var el = startEl;
5310
5312
 
5311
- while (el !== endEl) {
5313
+ while (el && el !== endEl) {
5312
5314
  var nextEl = el.nextElementSibling;
5313
5315
  el.parentNode.removeChild(el);
5314
5316
  Object(_scroll_cache_offsetInfo__WEBPACK_IMPORTED_MODULE_9__[/* removeOffsetInfoByNode */ "c"])(el);
5315
5317
  el = nextEl;
5316
5318
  }
5317
5319
 
5318
- if (el.parentNode) {
5320
+ if ((_el = el) == null ? void 0 : _el.parentNode) {
5319
5321
  _utils_dom__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"].remove(el);
5320
5322
  Object(_scroll_cache_offsetInfo__WEBPACK_IMPORTED_MODULE_9__[/* removeOffsetInfoByNode */ "c"])(el);
5321
5323
  }
@@ -5366,7 +5368,7 @@ var MarkdownPreview = /*#__PURE__*/function (_Preview) {
5366
5368
  /* harmony import */ var tui_code_snippet_type_isFalsy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_type_isFalsy__WEBPACK_IMPORTED_MODULE_2__);
5367
5369
  /* harmony import */ var tui_code_snippet_enum_enum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45);
5368
5370
  /* harmony import */ var tui_code_snippet_enum_enum__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(tui_code_snippet_enum_enum__WEBPACK_IMPORTED_MODULE_3__);
5369
- /* harmony import */ var _utils_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
5371
+ /* harmony import */ var _utils_map__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
5370
5372
  /**
5371
5373
  * @fileoverview Implements EventManager
5372
5374
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
@@ -5615,6 +5617,8 @@ var attribute = "(?:\\s+" + attrName + "(?:\\s*=\\s*" + attrValue + ")?)*\\s*";
5615
5617
  var openingTag = "(\\\\<|<)([A-Za-z][A-Za-z0-9\\-]*" + attribute + ")(\\/?>)";
5616
5618
  var HTML_TAG_RX = new RegExp(openingTag, 'g');
5617
5619
  var FRONT_MATTER_RX = /^\s?\\-\\-\\-([\s\S]+?)\\-\\-\\-/;
5620
+ var NBSP_RX = /&nbsp;/g;
5621
+ var BULLET_LIST_WITH_ORDERED_NUM_RX = /^(\s*\*\s+\d+)\./g;
5618
5622
  /**
5619
5623
  * Class Convertor
5620
5624
  * @param {EventManager} em - EventManager instance
@@ -5678,7 +5682,7 @@ var Convertor = /*#__PURE__*/function () {
5678
5682
  _proto._markdownToHtml = function _markdownToHtml(markdown) {
5679
5683
  markdown = markdown.replace(HTML_TAG_RX, function (match, $1, $2, $3) {
5680
5684
  return match[0] !== '\\' ? "" + $1 + $2 + " data-tomark-pass " + $3 : match;
5681
- });
5685
+ }).replace(BULLET_LIST_WITH_ORDERED_NUM_RX, '$1\\.');
5682
5686
  return this.renderHTML(this.mdReader.parse(markdown));
5683
5687
  }
5684
5688
  /**
@@ -5773,7 +5777,7 @@ var Convertor = /*#__PURE__*/function () {
5773
5777
 
5774
5778
  result[index] = line;
5775
5779
  });
5776
- return result.join('\n');
5780
+ return result.join('\n').replace(NBSP_RX, ' ');
5777
5781
  };
5778
5782
 
5779
5783
  _proto._removeNewlinesBeforeAfterAndBlockElement = function _removeNewlinesBeforeAfterAndBlockElement(markdown) {
@@ -6455,7 +6459,7 @@ module.exports = Enum;
6455
6459
  /* harmony import */ var _codeBlockManager__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(30);
6456
6460
  /* harmony import */ var _pluginHelper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31);
6457
6461
  /* harmony import */ var _utils_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(12);
6458
- /* harmony import */ var _htmlSanitizer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(25);
6462
+ /* harmony import */ var _htmlSanitizer__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(23);
6459
6463
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6460
6464
 
6461
6465
  /**
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 2.5.0 | Wed Oct 21 2020
3
+ * @version 2.5.4 | Tue Nov 30 2021
4
4
  * @author NHN FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1513,6 +1513,11 @@
1513
1513
  content: '';
1514
1514
  }
1515
1515
 
1516
+ .tui-editor-contents th ol,
1517
+ .tui-editor-contents th ul {
1518
+ color: #fff;
1519
+ }
1520
+
1516
1521
  .tui-editor-contents hr {
1517
1522
  border-top: 1px solid #eee;
1518
1523
  margin: 16px 0;